Function at 0x403d20
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x477cb6
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x4b1570]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x264], ecx
mov eax, dword [ebp - 0x264]
cmp dword [eax + 0x730], 0
je 0x403d86
mov ecx, dword [ebp - 0x264]
call fcn.004069d0
mov ecx, dword [ebp - 0x264]
mov dword [ecx + 0x730], 0
mov ecx, dword [ebp - 0x264]
call fcn.00405770
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x264]
call fcn.00406e90
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx - 0xc]
mov dword [ebp - 0xe0], edx
xor eax, eax
cmp dword [ebp - 0xe0], 0
sete al
movzx ecx, al
test ecx, ecx
je 0x403de3
mov dword [ebp - 0xd4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00401fc0
mov eax, dword [ebp - 0xd4]
jmp 0x404af8
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [ebp - 0xa0], 0
push 0x480378
mov eax, dword [ebp + 8]
push eax
call fcn.00460890
add esp, 8
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x403e35
mov dword [ebp - 0xd8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00401fc0
mov eax, dword [ebp - 0xd8]
jmp 0x404af8
push 1
mov ecx, dword [ebp - 0x264]
call fcn.0044146c
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0x480374
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
mov edx, dword [ebp - 0x264]
cmp dword [edx + 0x5e8], 0
je 0x403e7b
mov eax, dword [ebp + 8]
push eax
push 0x480370
push str.RebuildFS
push 0x480374
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 0x264]
cmp dword [ecx + 0x5ec], 0
je 0x40416a
mov edx, dword [ebp - 0x264]
mov eax, dword [edx + 0x5fc]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0xec], ecx
xor edx, edx
cmp dword [ebp - 0xec], 0
sete dl
movzx eax, dl
test eax, eax
jne 0x40416a
cmp dword [ebp + 0xc], 0
jne 0x403f53
mov ecx, dword [ebp - 0x264]
add ecx, 0x5fc
mov dword [ebp - 0x100], ecx
mov edx, dword [ebp - 0x100]
mov eax, dword [edx]
sub eax, 0x10
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0xf8]
mov edx, 1
sub edx, dword [ecx + 0xc]
mov dword [ebp - 0xf0], edx
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 8]
mov dword [ebp - 0xf4], ecx
mov edx, dword [ebp - 0xf0]
or edx, dword [ebp - 0xf4]
jge 0x403f25
push 0
mov ecx, dword [ebp - 0x100]
call fcn.004021d0
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax]
mov dword [ebp - 0xfc], ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xfc]
push eax
push str.UAPUK
push 0x480374
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x40416a
cmp dword [ebp + 0xc], 1
jne 0x40416a
mov ecx, dword [ebp - 0x264]
add ecx, 0x5fc
mov dword [ebp - 0x114], ecx
mov edx, dword [ebp - 0x114]
mov eax, dword [edx]
sub eax, 0x10
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x10c]
mov edx, 1
sub edx, dword [ecx + 0xc]
mov dword [ebp - 0x104], edx
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x108], ecx
mov edx, dword [ebp - 0x104]
or edx, dword [ebp - 0x108]
jge 0x403fbe
push 0
mov ecx, dword [ebp - 0x114]
call fcn.004021d0
mov eax, dword [ebp - 0x114]
mov ecx, dword [eax]
mov dword [ebp - 0x110], ecx
mov edx, dword [ebp - 0x110]
push edx
lea eax, [ebp - 0xa8]
push eax
mov ecx, dword [ebp - 0x264]
call fcn.00406f90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa8]
push ecx
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0xa4]
push eax
call fcn.00407700
add esp, 0xc
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x118], ecx
mov edx, dword [ebp - 0x264]
add edx, 0x5fc
mov dword [ebp - 0x12c], edx
mov eax, dword [ebp - 0x12c]
mov ecx, dword [eax]
sub ecx, 0x10
mov dword [ebp - 0x124], ecx
mov edx, dword [ebp - 0x124]
mov eax, 1
sub eax, dword [edx + 0xc]
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x124]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x120], edx
mov eax, dword [ebp - 0x11c]
or eax, dword [ebp - 0x120]
jge 0x404074
push 0
mov ecx, dword [ebp - 0x12c]
call fcn.004021d0
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ecx]
mov dword [ebp - 0x128], edx
push 0
mov eax, dword [ebp - 0x118]
push eax
mov ecx, dword [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4040c3
mov edx, dword [ebp + 8]
push edx
push 0
lea ecx, [ebp - 0xa8]
call fcn.00407de0
push eax
push str.UAPUK
push 0x480374
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x40414c
mov eax, dword [ebp - 0x264]
add eax, 0x5fc
mov dword [ebp - 0x14c], eax
mov ecx, dword [ebp - 0x14c]
mov edx, dword [ecx]
sub edx, 0x10
mov dword [ebp - 0x144], edx
mov eax, dword [ebp - 0x144]
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov dword [ebp - 0x13c], ecx
mov edx, dword [ebp - 0x144]
mov eax, dword [edx + 8]
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0x13c]
or ecx, dword [ebp - 0x140]
jge 0x404123
push 0
mov ecx, dword [ebp - 0x14c]
call fcn.004021d0
mov edx, dword [ebp - 0x14c]
mov eax, dword [edx]
mov dword [ebp - 0x148], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x148]
push edx
push str.UAPUK
push 0x480374
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa4]
call fcn.00401fc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa8]
call fcn.00401fc0
mov eax, dword [ebp - 0x264]
cmp dword [eax + 0x5f0], 0
je 0x404458
mov ecx, dword [ebp - 0x264]
mov edx, dword [ecx + 0x600]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x158], eax
xor ecx, ecx
cmp dword [ebp - 0x158], 0
sete cl
movzx edx, cl
test edx, edx
jne 0x404458
cmp dword [ebp + 0xc], 0
jne 0x404241
mov eax, dword [ebp - 0x264]
add eax, 0x600
mov dword [ebp - 0x16c], eax
mov ecx, dword [ebp - 0x16c]
mov edx, dword [ecx]
sub edx, 0x10
mov dword [ebp - 0x164], edx
mov eax, dword [ebp - 0x164]
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov dword [ebp - 0x15c], ecx
mov edx, dword [ebp - 0x164]
mov eax, dword [edx + 8]
mov dword [ebp - 0x160], eax
mov ecx, dword [ebp - 0x15c]
or ecx, dword [ebp - 0x160]
jge 0x404213
push 0
mov ecx, dword [ebp - 0x16c]
call fcn.004021d0
mov edx, dword [ebp - 0x16c]
mov eax, dword [edx]
mov dword [ebp - 0x168], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x168]
push edx
push str.USPUK
push 0x480374
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x404458
cmp dword [ebp + 0xc], 1
jne 0x404458
mov eax, dword [ebp - 0x264]
add eax, 0x600
mov dword [ebp - 0x180], eax
mov ecx, dword [ebp - 0x180]
mov edx, dword [ecx]
sub edx, 0x10
mov dword [ebp - 0x178], edx
mov eax, dword [ebp - 0x178]
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov dword [ebp - 0x170], ecx
mov edx, dword [ebp - 0x178]
mov eax, dword [edx + 8]
mov dword [ebp - 0x174], eax
mov ecx, dword [ebp - 0x170]
or ecx, dword [ebp - 0x174]
jge 0x4042ab
push 0
mov ecx, dword [ebp - 0x180]
call fcn.004021d0
mov edx, dword [ebp - 0x180]
mov eax, dword [edx]
mov dword [ebp - 0x17c], eax
mov ecx, dword [ebp - 0x17c]
push ecx
lea edx, [ebp - 0xb0]
push edx
mov ecx, dword [ebp - 0x264]
call fcn.00406f90
mov byte [ebp - 4], 3
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0xac]
push edx
call fcn.00407700
add esp, 0xc
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x184], eax
mov ecx, dword [ebp - 0x264]
add ecx, 0x600
mov dword [ebp - 0x198], ecx
mov edx, dword [ebp - 0x198]
mov eax, dword [edx]
sub eax, 0x10
mov dword [ebp - 0x190], eax
mov ecx, dword [ebp - 0x190]
mov edx, 1
sub edx, dword [ecx + 0xc]
mov dword [ebp - 0x188], edx
mov eax, dword [ebp - 0x190]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x18c], ecx
mov edx, dword [ebp - 0x188]
or edx, dword [ebp - 0x18c]
jge 0x404361
push 0
mov ecx, dword [ebp - 0x198]
call fcn.004021d0
mov eax, dword [ebp - 0x198]
mov ecx, dword [eax]
mov dword [ebp - 0x194], ecx
push 0
mov edx, dword [ebp - 0x184]
push edx
mov eax, dword [ebp - 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4043b0
mov ecx, dword [ebp + 8]
push ecx
push 0
lea ecx, [ebp - 0xb0]
call fcn.00407de0
push eax
push str.USPUK
push 0x480374
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x40443a
mov edx, dword [ebp - 0x264]
add edx, 0x600
mov dword [ebp - 0x1b8], edx
mov eax, dword [ebp - 0x1b8]
mov ecx, dword [eax]
sub ecx, 0x10
mov dword [ebp - 0x1b0], ecx
mov edx, dword [ebp - 0x1b0]
mov eax, 1
sub eax, dword [edx + 0xc]
mov dword [ebp - 0x1a8], eax
mov ecx, dword [ebp - 0x1b0]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x1ac], edx
mov eax, dword [ebp - 0x1a8]
or eax, dword [ebp - 0x1ac]
jge 0x404411
push 0
mov ecx, dword [ebp - 0x1b8]
call fcn.004021d0
mov ecx, dword [ebp - 0x1b8]
mov edx, dword [ecx]
mov dword [ebp - 0x1b4], edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1b4]
push ecx
push str.USPUK
push 0x480374
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xac]
call fcn.00401fc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb0]
call fcn.00401fc0
mov dword [ebp - 0xb4], 0
jmp 0x404473
mov edx, dword [ebp - 0xb4]
add edx, 1
mov dword [ebp - 0xb4], edx
push 0
push 0
push 0x18b
mov eax, dword [ebp - 0x264]
mov ecx, dword [eax + 0x2c0]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp - 0xb4], eax
jge 0x4047c8
mov edx, dword [ebp - 0xb4]
add edx, 1
push edx
push str.APP_d
lea eax, [ebp - 0x9c]
push eax
call fcn.004600f6
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0
lea edx, [ebp - 0x9c]
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
push 0
mov eax, dword [ebp - 0xb4]
push eax
push 0x199
mov ecx, dword [ebp - 0x264]
mov edx, dword [ecx + 0x2c0]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0xa0], eax
cmp dword [ebp + 0xc], 0
jne 0x404521
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xa0]
add ecx, 0x105
push ecx
push 0x480348
lea edx, [ebp - 0x9c]
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x4045fe
cmp dword [ebp + 0xc], 1
jne 0x4045fe
mov eax, dword [ebp - 0xa0]
add eax, 0x105
push eax
lea ecx, [ebp - 0xc0]
push ecx
mov ecx, dword [ebp - 0x264]
call fcn.00406f90
mov byte [ebp - 4], 5
lea edx, [ebp - 0xc0]
push edx
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0xbc]
push ecx
call fcn.00407700
add esp, 0xc
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0xbc]
mov dword [ebp - 0x1c4], edx
push 0
mov eax, dword [ebp - 0x1c4]
push eax
mov ecx, dword [ebp - 0xa0]
add ecx, 0x105
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4045bd
mov edx, dword [ebp + 8]
push edx
push 0
lea ecx, [ebp - 0xc0]
call fcn.00407de0
push eax
push 0x480348
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x4045e0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xa0]
add edx, 0x105
push edx
push 0x480348
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xbc]
call fcn.00401fc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xc0]
call fcn.00401fc0
mov dword [ebp - 0xb8], 0
cmp dword [ebp - 0xb8], 0xff
jge 0x4047a6
mov ecx, dword [ebp - 0xb8]
imul ecx, ecx, 0x104
mov edx, dword [ebp - 0xa0]
movsx eax, byte [edx + ecx + 0x209]
test eax, eax
je 0x4047a6
mov ecx, dword [ebp - 0xb8]
add ecx, 1
push ecx
push str.ParaFile_d
lea edx, [ebp - 0x54]
push edx
call fcn.004600f6
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x40468f
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xb8]
imul ecx, ecx, 0x104
mov edx, dword [ebp - 0xa0]
lea eax, [edx + ecx + 0x209]
push eax
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x9c]
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x404792
cmp dword [ebp + 0xc], 1
jne 0x404792
mov eax, dword [ebp - 0xb8]
imul eax, eax, 0x104
mov ecx, dword [ebp - 0xa0]
lea edx, [ecx + eax + 0x209]
push edx
lea eax, [ebp - 0xc8]
push eax
mov ecx, dword [ebp - 0x264]
call fcn.00406f90
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xc8]
push ecx
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0xc4]
push eax
call fcn.00407700
add esp, 0xc
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x1dc], ecx
push 0
mov edx, dword [ebp - 0x1dc]
push edx
mov eax, dword [ebp - 0xb8]
imul eax, eax, 0x104
mov ecx, dword [ebp - 0xa0]
lea edx, [ecx + eax + 0x209]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x404745
mov eax, dword [ebp + 8]
push eax
push 0
lea ecx, [ebp - 0xc8]
call fcn.00407de0
push eax
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x9c]
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x404774
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xb8]
imul ecx, ecx, 0x104
mov edx, dword [ebp - 0xa0]
lea eax, [edx + ecx + 0x209]
push eax
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x9c]
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xc4]
call fcn.00401fc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xc8]
call fcn.00401fc0
mov eax, dword [ebp - 0xb8]
add eax, 1
mov dword [ebp - 0xb8], eax
jmp 0x404608
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xa0]
push edx
push str.COMMENT
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x404464
mov ecx, dword [ebp - 0x264]
cmp dword [ecx + 0x5e4], 0
je 0x404abd
mov edx, dword [ebp - 0x264]
mov eax, dword [edx + 0x5f8]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x1f4], ecx
cmp dword [ebp - 0x1f4], 0
jle 0x404abd
mov edx, dword [ebp + 8]
push edx
push 0
push str.FONT
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
cmp dword [ebp + 0xc], 0
jne 0x4048a6
mov eax, dword [ebp - 0x264]
add eax, 0x5f8
mov dword [ebp - 0x208], eax
mov ecx, dword [ebp - 0x208]
mov edx, dword [ecx]
sub edx, 0x10
mov dword [ebp - 0x200], edx
mov eax, dword [ebp - 0x200]
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov dword [ebp - 0x1f8], ecx
mov edx, dword [ebp - 0x200]
mov eax, dword [edx + 8]
mov dword [ebp - 0x1fc], eax
mov ecx, dword [ebp - 0x1f8]
or ecx, dword [ebp - 0x1fc]
jge 0x404878
push 0
mov ecx, dword [ebp - 0x208]
call fcn.004021d0
mov edx, dword [ebp - 0x208]
mov eax, dword [edx]
mov dword [ebp - 0x204], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x204]
push edx
push str.Fontlib1
push str.FONT
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x404abd
cmp dword [ebp + 0xc], 1
jne 0x404abd
mov eax, dword [ebp - 0x264]
add eax, 0x5f8
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ecx]
sub edx, 0x10
mov dword [ebp - 0x214], edx
mov eax, dword [ebp - 0x214]
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov dword [ebp - 0x20c], ecx
mov edx, dword [ebp - 0x214]
mov eax, dword [edx + 8]
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp - 0x20c]
or ecx, dword [ebp - 0x210]
jge 0x404910
push 0
mov ecx, dword [ebp - 0x21c]
call fcn.004021d0
mov edx, dword [ebp - 0x21c]
mov eax, dword [edx]
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 0x218]
push ecx
lea edx, [ebp - 0xd0]
push edx
mov ecx, dword [ebp - 0x264]
call fcn.00406f90
mov byte [ebp - 4], 9
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0xcc]
push edx
call fcn.00407700
add esp, 0xc
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x220], eax
mov ecx, dword [ebp - 0x264]
add ecx, 0x5f8
mov dword [ebp - 0x234], ecx
mov edx, dword [ebp - 0x234]
mov eax, dword [edx]
sub eax, 0x10
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x22c]
mov edx, 1
sub edx, dword [ecx + 0xc]
mov dword [ebp - 0x224], edx
mov eax, dword [ebp - 0x22c]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x228], ecx
mov edx, dword [ebp - 0x224]
or edx, dword [ebp - 0x228]
jge 0x4049c6
push 0
mov ecx, dword [ebp - 0x234]
call fcn.004021d0
mov eax, dword [ebp - 0x234]
mov ecx, dword [eax]
mov dword [ebp - 0x230], ecx
push 0
mov edx, dword [ebp - 0x220]
push edx
mov eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x404a15
mov ecx, dword [ebp + 8]
push ecx
push 0
lea ecx, [ebp - 0xd0]
call fcn.00407de0
push eax
push str.Fontlib1
push str.FONT
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x404a9f
mov edx, dword [ebp - 0x264]
add edx, 0x5f8
mov dword [ebp - 0x254], edx
mov eax, dword [ebp - 0x254]
mov ecx, dword [eax]
sub ecx, 0x10
mov dword [ebp - 0x24c], ecx
mov edx, dword [ebp - 0x24c]
mov eax, 1
sub eax, dword [edx + 0xc]
mov dword [ebp - 0x244], eax
mov ecx, dword [ebp - 0x24c]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x248], edx
mov eax, dword [ebp - 0x244]
or eax, dword [ebp - 0x248]
jge 0x404a76
push 0
mov ecx, dword [ebp - 0x254]
call fcn.004021d0
mov ecx, dword [ebp - 0x254]
mov edx, dword [ecx]
mov dword [ebp - 0x250], edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x250]
push ecx
push str.Fontlib1
push str.FONT
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xcc]
call fcn.00401fc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd0]
call fcn.00401fc0
mov edx, dword [ebp - 0x58]
push edx
call fcn.00460750
add esp, 4
mov eax, dword [ebp - 0x264]
mov dword [eax + 0x72c], 0
mov dword [ebp - 0xdc], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00401fc0
mov eax, dword [ebp - 0xdc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004600a2
mov esp, ebp
pop ebp
ret 8