Function at 0x404cf0
Capabilities:
Copy file
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8072
mov eax, dword fs:[0]
push eax
sub esp, 0x4bc
mov eax, dword [0x5053c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c8], ecx
mov eax, dword [ebp - 0x4c8]
cmp dword [eax + 0xcf4], 0
je 0x404d56
mov ecx, dword [ebp - 0x4c8]
call fcn.00408740
mov ecx, dword [ebp - 0x4c8]
mov dword [ecx + 0xcf4], 0
mov ecx, dword [ebp - 0x4c8]
call fcn.004072c0
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x4c8]
call fcn.00408d10
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx - 0xc]
mov dword [ebp - 0x204], edx
xor eax, eax
cmp dword [ebp - 0x204], 0
sete al
movzx ecx, al
test ecx, ecx
je 0x404db3
mov dword [ebp - 0x1f8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00402970
mov eax, dword [ebp - 0x1f8]
jmp 0x4063a9
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [ebp - 0xa0], 0
push 0x4d7834
mov eax, dword [ebp + 8]
push eax
call fcn.00480f2b
add esp, 8
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x404e05
mov dword [ebp - 0x1fc], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00402970
mov eax, dword [ebp - 0x1fc]
jmp 0x4063a9
push 1
mov ecx, dword [ebp - 0x4c8]
call fcn.004459c8
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0x4d7830
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
mov edx, dword [ebp - 0x4c8]
cmp dword [edx + 0x6a4], 0
je 0x404e4b
mov eax, dword [ebp + 8]
push eax
push 0x4d782c
push str.RebuildFS
push 0x4d7830
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 0x4c8]
cmp dword [ecx + 0x6a8], 0
je 0x405117
mov edx, dword [ebp - 0x4c8]
mov eax, dword [edx + 0x6bc]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x210], ecx
xor edx, edx
cmp dword [ebp - 0x210], 0
sete dl
movzx eax, dl
test eax, eax
jne 0x405117
cmp dword [ebp + 0xc], 0
jne 0x404ebd
mov ecx, dword [ebp + 8]
push ecx
push 0
mov ecx, dword [ebp - 0x4c8]
add ecx, 0x6bc
call fcn.0040aa60
push eax
push str.MagDriver
push 0x4d7830
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x405117
cmp dword [ebp + 0xc], 1
jne 0x405117
push 0
mov ecx, dword [ebp - 0x4c8]
add ecx, 0x6bc
call fcn.0040aa60
mov dword [ebp - 0x214], eax
mov edx, dword [ebp - 0x214]
push edx
lea eax, [ebp - 0xa8]
push eax
mov ecx, dword [ebp - 0x4c8]
call fcn.00408e10
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.0040a2d0
add esp, 0xc
mov byte [ebp - 4], 2
push 0
mov ecx, dword [ebp - 0x4c8]
add ecx, 0x6bc
call fcn.0040aa60
mov dword [ebp - 0x218], eax
xor ecx, ecx
cmp dword [ebp - 0x218], 0
setne cl
neg ecx
sbb ecx, ecx
neg ecx
mov dword [ebp - 0x21c], ecx
jne 0x404f58
push 0x80004005
call fcn.00402670
xor edx, edx
jne 0x404f34
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x220], eax
mov ecx, dword [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x220]
push edx
call fcn.00480e54
add esp, 8
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x404fb4
mov eax, dword [ebp + 8]
push eax
push 0
lea ecx, [ebp - 0xa8]
call fcn.0040aa60
push eax
push str.MagDriver
push 0x4d7830
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x4050f9
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x228], ecx
mov edx, dword [ebp - 0x4c8]
add edx, 0x6bc
mov dword [ebp - 0x23c], edx
mov eax, dword [ebp - 0x23c]
mov ecx, dword [eax]
sub ecx, 0x10
mov dword [ebp - 0x234], ecx
mov edx, dword [ebp - 0x234]
mov eax, 1
sub eax, dword [edx + 0xc]
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x234]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x230], edx
mov eax, dword [ebp - 0x22c]
or eax, dword [ebp - 0x230]
jge 0x405021
push 0
mov ecx, dword [ebp - 0x23c]
call fcn.00402b80
mov ecx, dword [ebp - 0x23c]
mov edx, dword [ecx]
mov dword [ebp - 0x238], edx
push 0
mov eax, dword [ebp - 0x228]
push eax
mov ecx, dword [ebp - 0x238]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x405070
mov edx, dword [ebp + 8]
push edx
push 0
lea ecx, [ebp - 0xa8]
call fcn.0040a8d0
push eax
push str.MagDriver
push 0x4d7830
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x4050f9
mov eax, dword [ebp - 0x4c8]
add eax, 0x6bc
mov dword [ebp - 0x25c], eax
mov ecx, dword [ebp - 0x25c]
mov edx, dword [ecx]
sub edx, 0x10
mov dword [ebp - 0x254], edx
mov eax, dword [ebp - 0x254]
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov dword [ebp - 0x24c], ecx
mov edx, dword [ebp - 0x254]
mov eax, dword [edx + 8]
mov dword [ebp - 0x250], eax
mov ecx, dword [ebp - 0x24c]
or ecx, dword [ebp - 0x250]
jge 0x4050d0
push 0
mov ecx, dword [ebp - 0x25c]
call fcn.00402b80
mov edx, dword [ebp - 0x25c]
mov eax, dword [edx]
mov dword [ebp - 0x258], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x258]
push edx
push str.MagDriver
push 0x4d7830
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa4]
call fcn.00402970
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa8]
call fcn.00402970
mov eax, dword [ebp - 0x4c8]
cmp dword [eax + 0x6ac], 0
je 0x4054f2
mov ecx, dword [ebp - 0x4c8]
mov edx, dword [ecx + 0x6c0]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x268], eax
xor ecx, ecx
cmp dword [ebp - 0x268], 0
sete cl
movzx edx, cl
test edx, edx
jne 0x4054f2
cmp dword [ebp + 0xc], 0
jne 0x4051ee
mov eax, dword [ebp - 0x4c8]
add eax, 0x6c0
mov dword [ebp - 0x27c], eax
mov ecx, dword [ebp - 0x27c]
mov edx, dword [ecx]
sub edx, 0x10
mov dword [ebp - 0x274], edx
mov eax, dword [ebp - 0x274]
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov dword [ebp - 0x26c], ecx
mov edx, dword [ebp - 0x274]
mov eax, dword [edx + 8]
mov dword [ebp - 0x270], eax
mov ecx, dword [ebp - 0x26c]
or ecx, dword [ebp - 0x270]
jge 0x4051c0
push 0
mov ecx, dword [ebp - 0x27c]
call fcn.00402b80
mov edx, dword [ebp - 0x27c]
mov eax, dword [edx]
mov dword [ebp - 0x278], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x278]
push edx
push str.USPUK
push 0x4d7830
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x4054f2
cmp dword [ebp + 0xc], 1
jne 0x4054f2
mov eax, dword [ebp - 0x4c8]
add eax, 0x6c0
mov dword [ebp - 0x290], eax
mov ecx, dword [ebp - 0x290]
mov edx, dword [ecx]
sub edx, 0x10
mov dword [ebp - 0x288], edx
mov eax, dword [ebp - 0x288]
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov dword [ebp - 0x280], ecx
mov edx, dword [ebp - 0x288]
mov eax, dword [edx + 8]
mov dword [ebp - 0x284], eax
mov ecx, dword [ebp - 0x280]
or ecx, dword [ebp - 0x284]
jge 0x405258
push 0
mov ecx, dword [ebp - 0x290]
call fcn.00402b80
mov edx, dword [ebp - 0x290]
mov eax, dword [edx]
mov dword [ebp - 0x28c], eax
mov ecx, dword [ebp - 0x28c]
push ecx
lea edx, [ebp - 0xb0]
push edx
mov ecx, dword [ebp - 0x4c8]
call fcn.00408e10
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.0040a2d0
add esp, 0xc
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x4c8]
add eax, 0x6c0
mov dword [ebp - 0x2a4], eax
mov ecx, dword [ebp - 0x2a4]
mov edx, dword [ecx]
sub edx, 0x10
mov dword [ebp - 0x29c], edx
mov eax, dword [ebp - 0x29c]
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov dword [ebp - 0x294], ecx
mov edx, dword [ebp - 0x29c]
mov eax, dword [edx + 8]
mov dword [ebp - 0x298], eax
mov ecx, dword [ebp - 0x294]
or ecx, dword [ebp - 0x298]
jge 0x405301
push 0
mov ecx, dword [ebp - 0x2a4]
call fcn.00402b80
mov edx, dword [ebp - 0x2a4]
mov eax, dword [edx]
mov dword [ebp - 0x2a0], eax
xor ecx, ecx
cmp dword [ebp - 0x2a0], 0
setne cl
neg ecx
sbb ecx, ecx
neg ecx
mov dword [ebp - 0x2a8], ecx
jne 0x405333
push 0x80004005
call fcn.00402670
xor edx, edx
jne 0x40530f
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x2ac], eax
mov ecx, dword [ebp - 0x2a0]
push ecx
mov edx, dword [ebp - 0x2ac]
push edx
call fcn.00480e54
add esp, 8
mov dword [ebp - 0x2b0], eax
cmp dword [ebp - 0x2b0], 0
jne 0x40538f
mov eax, dword [ebp + 8]
push eax
push 0
lea ecx, [ebp - 0xb0]
call fcn.0040a8d0
push eax
push str.USPUK
push 0x4d7830
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x4054d4
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0x2c0], ecx
mov edx, dword [ebp - 0x4c8]
add edx, 0x6c0
mov dword [ebp - 0x2d4], edx
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [eax]
sub ecx, 0x10
mov dword [ebp - 0x2cc], ecx
mov edx, dword [ebp - 0x2cc]
mov eax, 1
sub eax, dword [edx + 0xc]
mov dword [ebp - 0x2c4], eax
mov ecx, dword [ebp - 0x2cc]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x2c8], edx
mov eax, dword [ebp - 0x2c4]
or eax, dword [ebp - 0x2c8]
jge 0x4053fc
push 0
mov ecx, dword [ebp - 0x2d4]
call fcn.00402b80
mov ecx, dword [ebp - 0x2d4]
mov edx, dword [ecx]
mov dword [ebp - 0x2d0], edx
push 0
mov eax, dword [ebp - 0x2c0]
push eax
mov ecx, dword [ebp - 0x2d0]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40544b
mov edx, dword [ebp + 8]
push edx
push 0
lea ecx, [ebp - 0xb0]
call fcn.0040a8d0
push eax
push str.USPUK
push 0x4d7830
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x4054d4
mov eax, dword [ebp - 0x4c8]
add eax, 0x6c0
mov dword [ebp - 0x2f4], eax
mov ecx, dword [ebp - 0x2f4]
mov edx, dword [ecx]
sub edx, 0x10
mov dword [ebp - 0x2ec], edx
mov eax, dword [ebp - 0x2ec]
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov dword [ebp - 0x2e4], ecx
mov edx, dword [ebp - 0x2ec]
mov eax, dword [edx + 8]
mov dword [ebp - 0x2e8], eax
mov ecx, dword [ebp - 0x2e4]
or ecx, dword [ebp - 0x2e8]
jge 0x4054ab
push 0
mov ecx, dword [ebp - 0x2f4]
call fcn.00402b80
mov edx, dword [ebp - 0x2f4]
mov eax, dword [edx]
mov dword [ebp - 0x2f0], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x2f0]
push edx
push str.USPUK
push 0x4d7830
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xac]
call fcn.00402970
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb0]
call fcn.00402970
mov eax, dword [ebp - 0x4c8]
cmp dword [eax + 0x6b0], 0
je 0x4058cd
mov ecx, dword [ebp - 0x4c8]
mov edx, dword [ecx + 0x6c4]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x300], eax
xor ecx, ecx
cmp dword [ebp - 0x300], 0
sete cl
movzx edx, cl
test edx, edx
jne 0x4058cd
cmp dword [ebp + 0xc], 0
jne 0x4055c9
mov eax, dword [ebp - 0x4c8]
add eax, 0x6c4
mov dword [ebp - 0x314], eax
mov ecx, dword [ebp - 0x314]
mov edx, dword [ecx]
sub edx, 0x10
mov dword [ebp - 0x30c], edx
mov eax, dword [ebp - 0x30c]
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov dword [ebp - 0x304], ecx
mov edx, dword [ebp - 0x30c]
mov eax, dword [edx + 8]
mov dword [ebp - 0x308], eax
mov ecx, dword [ebp - 0x304]
or ecx, dword [ebp - 0x308]
jge 0x40559b
push 0
mov ecx, dword [ebp - 0x314]
call fcn.00402b80
mov edx, dword [ebp - 0x314]
mov eax, dword [edx]
mov dword [ebp - 0x310], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x310]
push edx
push str.UAPUK
push 0x4d7830
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x4058cd
cmp dword [ebp + 0xc], 1
jne 0x4058cd
mov eax, dword [ebp - 0x4c8]
add eax, 0x6c4
mov dword [ebp - 0x328], eax
mov ecx, dword [ebp - 0x328]
mov edx, dword [ecx]
sub edx, 0x10
mov dword [ebp - 0x320], edx
mov eax, dword [ebp - 0x320]
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov dword [ebp - 0x318], ecx
mov edx, dword [ebp - 0x320]
mov eax, dword [edx + 8]
mov dword [ebp - 0x31c], eax
mov ecx, dword [ebp - 0x318]
or ecx, dword [ebp - 0x31c]
jge 0x405633
push 0
mov ecx, dword [ebp - 0x328]
call fcn.00402b80
mov edx, dword [ebp - 0x328]
mov eax, dword [edx]
mov dword [ebp - 0x324], eax
mov ecx, dword [ebp - 0x324]
push ecx
lea edx, [ebp - 0xb8]
push edx
mov ecx, dword [ebp - 0x4c8]
call fcn.00408e10
mov byte [ebp - 4], 5
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0xb4]
push edx
call fcn.0040a2d0
add esp, 0xc
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x4c8]
add eax, 0x6c4
mov dword [ebp - 0x33c], eax
mov ecx, dword [ebp - 0x33c]
mov edx, dword [ecx]
sub edx, 0x10
mov dword [ebp - 0x334], edx
mov eax, dword [ebp - 0x334]
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov dword [ebp - 0x32c], ecx
mov edx, dword [ebp - 0x334]
mov eax, dword [edx + 8]
mov dword [ebp - 0x330], eax
mov ecx, dword [ebp - 0x32c]
or ecx, dword [ebp - 0x330]
jge 0x4056dc
push 0
mov ecx, dword [ebp - 0x33c]
call fcn.00402b80
mov edx, dword [ebp - 0x33c]
mov eax, dword [edx]
mov dword [ebp - 0x338], eax
xor ecx, ecx
cmp dword [ebp - 0x338], 0
setne cl
neg ecx
sbb ecx, ecx
neg ecx
mov dword [ebp - 0x340], ecx
jne 0x40570e
push 0x80004005
call fcn.00402670
xor edx, edx
jne 0x4056ea
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x344], eax
mov ecx, dword [ebp - 0x338]
push ecx
mov edx, dword [ebp - 0x344]
push edx
call fcn.00480e54
add esp, 8
mov dword [ebp - 0x348], eax
cmp dword [ebp - 0x348], 0
jne 0x40576a
mov eax, dword [ebp + 8]
push eax
push 0
lea ecx, [ebp - 0xb8]
call fcn.0040a8d0
push eax
push str.UAPUK
push 0x4d7830
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x4058af
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0x358], ecx
mov edx, dword [ebp - 0x4c8]
add edx, 0x6c4
mov dword [ebp - 0x36c], edx
mov eax, dword [ebp - 0x36c]
mov ecx, dword [eax]
sub ecx, 0x10
mov dword [ebp - 0x364], ecx
mov edx, dword [ebp - 0x364]
mov eax, 1
sub eax, dword [edx + 0xc]
mov dword [ebp - 0x35c], eax
mov ecx, dword [ebp - 0x364]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x360], edx
mov eax, dword [ebp - 0x35c]
or eax, dword [ebp - 0x360]
jge 0x4057d7
push 0
mov ecx, dword [ebp - 0x36c]
call fcn.00402b80
mov ecx, dword [ebp - 0x36c]
mov edx, dword [ecx]
mov dword [ebp - 0x368], edx
push 0
mov eax, dword [ebp - 0x358]
push eax
mov ecx, dword [ebp - 0x368]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x405826
mov edx, dword [ebp + 8]
push edx
push 0
lea ecx, [ebp - 0xb8]
call fcn.0040a8d0
push eax
push str.UAPUK
push 0x4d7830
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x4058af
mov eax, dword [ebp - 0x4c8]
add eax, 0x6c4
mov dword [ebp - 0x38c], eax
mov ecx, dword [ebp - 0x38c]
mov edx, dword [ecx]
sub edx, 0x10
mov dword [ebp - 0x384], edx
mov eax, dword [ebp - 0x384]
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov dword [ebp - 0x37c], ecx
mov edx, dword [ebp - 0x384]
mov eax, dword [edx + 8]
mov dword [ebp - 0x380], eax
mov ecx, dword [ebp - 0x37c]
or ecx, dword [ebp - 0x380]
jge 0x405886
push 0
mov ecx, dword [ebp - 0x38c]
call fcn.00402b80
mov edx, dword [ebp - 0x38c]
mov eax, dword [edx]
mov dword [ebp - 0x388], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x388]
push edx
push str.UAPUK
push 0x4d7830
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xb4]
call fcn.00402970
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb8]
call fcn.00402970
push 0
push 0
push 0xf0
mov eax, dword [ebp - 0x4c8]
mov ecx, dword [eax + 0xaf8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 1
jne 0x405aec
push 0
push 0
push 0x18b
mov edx, dword [ebp - 0x4c8]
mov eax, dword [edx + 0xb4c]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jle 0x405aec
push 0
push 0
push 0x18b
mov ecx, dword [ebp - 0x4c8]
mov edx, dword [ecx + 0xb4c]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x1c8], eax
mov byte [ebp - 0x1c4], 0
push 0x103
push 0
lea eax, [ebp - 0x1c3]
push eax
call fcn.00480360
add esp, 0xc
mov dword [ebp - 0x1cc], 0
jmp 0x405970
mov ecx, dword [ebp - 0x1cc]
add ecx, 1
mov dword [ebp - 0x1cc], ecx
mov edx, dword [ebp - 0x1cc]
cmp edx, dword [ebp - 0x1c8]
jge 0x405aec
mov eax, dword [ebp - 0x1cc]
add eax, 1
push eax
push str.PublicFile_d
lea ecx, [ebp - 0x54]
push ecx
call fcn.004803da
add esp, 0xc
lea edx, [ebp - 0x1c4]
push edx
mov eax, dword [ebp - 0x1cc]
push eax
push 0x189
mov ecx, dword [ebp - 0x4c8]
mov edx, dword [ecx + 0xb4c]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp + 0xc], 0
jne 0x4059e8
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1c4]
push ecx
lea edx, [ebp - 0x54]
push edx
push 0x4d7830
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x405ae7
cmp dword [ebp + 0xc], 1
jne 0x405ae7
lea eax, [ebp - 0x1c4]
push eax
lea ecx, [ebp - 0x1d4]
push ecx
mov ecx, dword [ebp - 0x4c8]
call fcn.00408e10
mov byte [ebp - 4], 7
lea edx, [ebp - 0x1d4]
push edx
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.0040a2d0
add esp, 0xc
mov byte [ebp - 4], 8
lea edx, [ebp - 0x1c4]
push edx
lea ecx, [ebp - 0x1d0]
call fcn.0040a0e0
test eax, eax
jne 0x405a66
mov eax, dword [ebp + 8]
push eax
push 0
lea ecx, [ebp - 0x1d4]
call fcn.0040a8d0
push eax
lea ecx, [ebp - 0x54]
push ecx
push 0x4d7830
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x405ac9
mov edx, dword [ebp - 0x1d0]
mov dword [ebp - 0x3ac], edx
push 0
mov eax, dword [ebp - 0x3ac]
push eax
lea ecx, [ebp - 0x1c4]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x405aaf
mov edx, dword [ebp + 8]
push edx
push 0
lea ecx, [ebp - 0x1d4]
call fcn.0040a8d0
push eax
lea eax, [ebp - 0x54]
push eax
push 0x4d7830
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x405ac9
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x1c4]
push edx
lea eax, [ebp - 0x54]
push eax
push 0x4d7830
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1d0]
call fcn.00402970
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1d4]
call fcn.00402970
jmp 0x405961
mov dword [ebp - 0x1d8], 0
jmp 0x405b07
mov ecx, dword [ebp - 0x1d8]
add ecx, 1
mov dword [ebp - 0x1d8], ecx
push 0
push 0
push 0x18b
mov edx, dword [ebp - 0x4c8]
mov eax, dword [edx + 0x2d8]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp - 0x1d8], eax
jge 0x405f8c
mov ecx, dword [ebp - 0x1d8]
add ecx, 1
push ecx
push str.APP_d
lea edx, [ebp - 0x9c]
push edx
call fcn.004803da
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 0
lea ecx, [ebp - 0x9c]
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
push 0
mov edx, dword [ebp - 0x1d8]
push edx
push 0x199
mov eax, dword [ebp - 0x4c8]
mov ecx, dword [eax + 0x2d8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0xa0], eax
cmp dword [ebp + 0xc], 0
jne 0x405bb4
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xa0]
add eax, 0x105
push eax
push 0x4d77e8
lea ecx, [ebp - 0x9c]
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x405d22
cmp dword [ebp + 0xc], 1
jne 0x405d22
mov edx, dword [ebp - 0xa0]
add edx, 0x105
push edx
lea eax, [ebp - 0x1e4]
push eax
mov ecx, dword [ebp - 0x4c8]
call fcn.00408e10
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1e4]
push ecx
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x1e0]
push eax
call fcn.0040a2d0
add esp, 0xc
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0xa0]
add ecx, 0x105
mov dword [ebp - 0x3cc], ecx
xor edx, edx
cmp dword [ebp - 0x3cc], 0
setne dl
neg edx
sbb edx, edx
neg edx
mov dword [ebp - 0x3c4], edx
jne 0x405c35
push 0x80004005
call fcn.00402670
xor eax, eax
jne 0x405c11
mov ecx, dword [ebp - 0x1e0]
mov dword [ebp - 0x3c8], ecx
mov edx, dword [ebp - 0x3cc]
push edx
mov eax, dword [ebp - 0x3c8]
push eax
call fcn.00480e54
add esp, 8
mov dword [ebp - 0x3d0], eax
cmp dword [ebp - 0x3d0], 0
jne 0x405c90
mov ecx, dword [ebp + 8]
push ecx
push 0
lea ecx, [ebp - 0x1e4]
call fcn.0040a8d0
push eax
push 0x4d77e8
lea edx, [ebp - 0x9c]
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x405d04
mov eax, dword [ebp - 0x1e0]
mov dword [ebp - 0x3e0], eax
push 0
mov ecx, dword [ebp - 0x3e0]
push ecx
mov edx, dword [ebp - 0xa0]
add edx, 0x105
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x405ce2
mov eax, dword [ebp + 8]
push eax
push 0
lea ecx, [ebp - 0x1e4]
call fcn.0040a8d0
push eax
push 0x4d77e8
lea ecx, [ebp - 0x9c]
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x405d04
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xa0]
add eax, 0x105
push eax
push 0x4d77e8
lea ecx, [ebp - 0x9c]
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1e0]
call fcn.00402970
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1e4]
call fcn.00402970
mov dword [ebp - 0x1dc], 0
cmp dword [ebp - 0x1dc], 0xff
jge 0x405f6a
mov edx, dword [ebp - 0x1dc]
imul edx, edx, 0x104
mov eax, dword [ebp - 0xa0]
movsx ecx, byte [eax + edx + 0x209]
test ecx, ecx
je 0x405f6a
mov edx, dword [ebp - 0x1dc]
add edx, 1
push edx
push str.ParaFile_d
lea eax, [ebp - 0x54]
push eax
call fcn.004803da
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x405db3
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x1dc]
imul edx, edx, 0x104
mov eax, dword [ebp - 0xa0]
lea ecx, [eax + edx + 0x209]
push ecx
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x405f56
cmp dword [ebp + 0xc], 1
jne 0x405f56
mov ecx, dword [ebp - 0x1dc]
imul ecx, ecx, 0x104
mov edx, dword [ebp - 0xa0]
lea eax, [edx + ecx + 0x209]
push eax
lea ecx, [ebp - 0x1ec]
push ecx
mov ecx, dword [ebp - 0x4c8]
call fcn.00408e10
mov byte [ebp - 4], 0xb
lea edx, [ebp - 0x1ec]
push edx
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x1e8]
push ecx
call fcn.0040a2d0
add esp, 0xc
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x1dc]
imul edx, edx, 0x104
mov eax, dword [ebp - 0xa0]
lea ecx, [eax + edx + 0x209]
mov dword [ebp - 0x400], ecx
xor edx, edx
cmp dword [ebp - 0x400], 0
setne dl
neg edx
sbb edx, edx
neg edx
mov dword [ebp - 0x3f8], edx
jne 0x405e4e
push 0x80004005
call fcn.00402670
xor eax, eax
jne 0x405e2a
mov ecx, dword [ebp - 0x1e8]
mov dword [ebp - 0x3fc], ecx
mov edx, dword [ebp - 0x400]
push edx
mov eax, dword [ebp - 0x3fc]
push eax
call fcn.00480e54
add esp, 8
mov dword [ebp - 0x404], eax
cmp dword [ebp - 0x404], 0
jne 0x405eab
mov ecx, dword [ebp + 8]
push ecx
push 0
lea ecx, [ebp - 0x1ec]
call fcn.0040a8d0
push eax
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x405f38
mov ecx, dword [ebp - 0x1e8]
mov dword [ebp - 0x414], ecx
push 0
mov edx, dword [ebp - 0x414]
push edx
mov eax, dword [ebp - 0x1dc]
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 0x405f09
mov eax, dword [ebp + 8]
push eax
push 0
lea ecx, [ebp - 0x1ec]
call fcn.0040a8d0
push eax
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x9c]
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x405f38
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1dc]
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], 0xb
lea ecx, [ebp - 0x1e8]
call fcn.00402970
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1ec]
call fcn.00402970
mov eax, dword [ebp - 0x1dc]
add eax, 1
mov dword [ebp - 0x1dc], eax
jmp 0x405d2c
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 0x405af8
mov ecx, dword [ebp - 0x4c8]
cmp dword [ecx + 0x6a0], 0
je 0x40636e
mov edx, dword [ebp - 0x4c8]
mov eax, dword [edx + 0x6b8]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x42c], ecx
cmp dword [ebp - 0x42c], 0
jle 0x40636e
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 0x40606a
mov eax, dword [ebp - 0x4c8]
add eax, 0x6b8
mov dword [ebp - 0x440], eax
mov ecx, dword [ebp - 0x440]
mov edx, dword [ecx]
sub edx, 0x10
mov dword [ebp - 0x438], edx
mov eax, dword [ebp - 0x438]
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov dword [ebp - 0x430], ecx
mov edx, dword [ebp - 0x438]
mov eax, dword [edx + 8]
mov dword [ebp - 0x434], eax
mov ecx, dword [ebp - 0x430]
or ecx, dword [ebp - 0x434]
jge 0x40603c
push 0
mov ecx, dword [ebp - 0x440]
call fcn.00402b80
mov edx, dword [ebp - 0x440]
mov eax, dword [edx]
mov dword [ebp - 0x43c], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x43c]
push edx
push str.Fontlib1
push str.FONT
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x40636e
cmp dword [ebp + 0xc], 1
jne 0x40636e
mov eax, dword [ebp - 0x4c8]
add eax, 0x6b8
mov dword [ebp - 0x454], eax
mov ecx, dword [ebp - 0x454]
mov edx, dword [ecx]
sub edx, 0x10
mov dword [ebp - 0x44c], edx
mov eax, dword [ebp - 0x44c]
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov dword [ebp - 0x444], ecx
mov edx, dword [ebp - 0x44c]
mov eax, dword [edx + 8]
mov dword [ebp - 0x448], eax
mov ecx, dword [ebp - 0x444]
or ecx, dword [ebp - 0x448]
jge 0x4060d4
push 0
mov ecx, dword [ebp - 0x454]
call fcn.00402b80
mov edx, dword [ebp - 0x454]
mov eax, dword [edx]
mov dword [ebp - 0x450], eax
mov ecx, dword [ebp - 0x450]
push ecx
lea edx, [ebp - 0x1f4]
push edx
mov ecx, dword [ebp - 0x4c8]
call fcn.00408e10
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x1f4]
push eax
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x1f0]
push edx
call fcn.0040a2d0
add esp, 0xc
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x4c8]
add eax, 0x6b8
mov dword [ebp - 0x468], eax
mov ecx, dword [ebp - 0x468]
mov edx, dword [ecx]
sub edx, 0x10
mov dword [ebp - 0x460], edx
mov eax, dword [ebp - 0x460]
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov dword [ebp - 0x458], ecx
mov edx, dword [ebp - 0x460]
mov eax, dword [edx + 8]
mov dword [ebp - 0x45c], eax
mov ecx, dword [ebp - 0x458]
or ecx, dword [ebp - 0x45c]
jge 0x40617d
push 0
mov ecx, dword [ebp - 0x468]
call fcn.00402b80
mov edx, dword [ebp - 0x468]
mov eax, dword [edx]
mov dword [ebp - 0x464], eax
xor ecx, ecx
cmp dword [ebp - 0x464], 0
setne cl
neg ecx
sbb ecx, ecx
neg ecx
mov dword [ebp - 0x46c], ecx
jne 0x4061af
push 0x80004005
call fcn.00402670
xor edx, edx
jne 0x40618b
mov eax, dword [ebp - 0x1f0]
mov dword [ebp - 0x470], eax
mov ecx, dword [ebp - 0x464]
push ecx
mov edx, dword [ebp - 0x470]
push edx
call fcn.00480e54
add esp, 8
mov dword [ebp - 0x474], eax
cmp dword [ebp - 0x474], 0
jne 0x40620b
mov eax, dword [ebp + 8]
push eax
push 0
lea ecx, [ebp - 0x1f4]
call fcn.0040a8d0
push eax
push str.Fontlib1
push str.FONT
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x406350
mov ecx, dword [ebp - 0x1f0]
mov dword [ebp - 0x484], ecx
mov edx, dword [ebp - 0x4c8]
add edx, 0x6b8
mov dword [ebp - 0x498], edx
mov eax, dword [ebp - 0x498]
mov ecx, dword [eax]
sub ecx, 0x10
mov dword [ebp - 0x490], ecx
mov edx, dword [ebp - 0x490]
mov eax, 1
sub eax, dword [edx + 0xc]
mov dword [ebp - 0x488], eax
mov ecx, dword [ebp - 0x490]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x48c], edx
mov eax, dword [ebp - 0x488]
or eax, dword [ebp - 0x48c]
jge 0x406278
push 0
mov ecx, dword [ebp - 0x498]
call fcn.00402b80
mov ecx, dword [ebp - 0x498]
mov edx, dword [ecx]
mov dword [ebp - 0x494], edx
push 0
mov eax, dword [ebp - 0x484]
push eax
mov ecx, dword [ebp - 0x494]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4062c7
mov edx, dword [ebp + 8]
push edx
push 0
lea ecx, [ebp - 0x1f4]
call fcn.0040a8d0
push eax
push str.Fontlib1
push str.FONT
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x406350
mov eax, dword [ebp - 0x4c8]
add eax, 0x6b8
mov dword [ebp - 0x4b8], eax
mov ecx, dword [ebp - 0x4b8]
mov edx, dword [ecx]
sub edx, 0x10
mov dword [ebp - 0x4b0], edx
mov eax, dword [ebp - 0x4b0]
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov dword [ebp - 0x4a8], ecx
mov edx, dword [ebp - 0x4b0]
mov eax, dword [edx + 8]
mov dword [ebp - 0x4ac], eax
mov ecx, dword [ebp - 0x4a8]
or ecx, dword [ebp - 0x4ac]
jge 0x406327
push 0
mov ecx, dword [ebp - 0x4b8]
call fcn.00402b80
mov edx, dword [ebp - 0x4b8]
mov eax, dword [edx]
mov dword [ebp - 0x4b4], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x4b4]
push edx
push str.Fontlib1
push str.FONT
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x1f0]
call fcn.00402970
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1f4]
call fcn.00402970
mov eax, dword [ebp - 0x58]
push eax
call fcn.00480c29
add esp, 4
mov ecx, dword [ebp - 0x4c8]
mov dword [ecx + 0xcf0], 0
mov dword [ebp - 0x200], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00402970
mov eax, dword [ebp - 0x200]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00480296
mov esp, ebp
pop ebp
ret 8