Function at 0x4063d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x5053c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x290], ecx
mov dword [ebp - 0x4c], 0
mov ecx, dword [ebp - 0x290]
call fcn.00406e00
mov eax, dword [ebp + 8]
push eax
push 0
push str.RebuildFS
push 0x4d7830
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x290]
mov dword [ecx + 0x6a4], eax
mov edx, dword [ebp + 8]
push edx
push 0x104
push 0x104
mov ecx, dword [ebp - 0x290]
add ecx, 0x6bc
call fcn.0040aa60
push eax
push 0x4d6adc
push str.MagDriver
push 0x4d7830
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x1c4], 0xffffffff
mov eax, dword [ebp - 0x290]
add eax, 0x6bc
mov dword [ebp - 0x1c0], eax
cmp dword [ebp - 0x1c4], 0xffffffff
jne 0x4064ae
mov ecx, dword [ebp - 0x1c0]
mov edx, dword [ecx]
mov dword [ebp - 0x1bc], edx
cmp dword [ebp - 0x1bc], 0
jne 0x406499
mov dword [ebp - 0x1c4], 0
jmp 0x4064ae
mov eax, dword [ebp - 0x1bc]
push eax
call fcn.0047fdb0
add esp, 4
mov dword [ebp - 0x1c4], eax
mov ecx, dword [ebp - 0x1c4]
push ecx
mov ecx, dword [ebp - 0x1c0]
call fcn.0040aab0
mov edx, dword [ebp - 0x290]
mov eax, dword [edx + 0x6bc]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x1c8], ecx
xor edx, edx
cmp dword [ebp - 0x1c8], 0
sete dl
movzx eax, dl
neg eax
sbb eax, eax
add eax, 1
mov ecx, dword [ebp - 0x290]
mov dword [ecx + 0x6a8], eax
mov edx, dword [ebp + 8]
push edx
push 0x104
push 0x104
mov ecx, dword [ebp - 0x290]
add ecx, 0x6c0
call fcn.0040aa60
push eax
push 0x4d6adc
push str.USPUK
push 0x4d7830
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x290]
add ecx, 0x6c0
call fcn.0040a930
mov eax, dword [ebp - 0x290]
mov ecx, dword [eax + 0x6c0]
mov edx, dword [ecx - 0xc]
mov dword [ebp - 0x1d0], edx
xor eax, eax
cmp dword [ebp - 0x1d0], 0
sete al
movzx ecx, al
neg ecx
sbb ecx, ecx
add ecx, 1
mov edx, dword [ebp - 0x290]
mov dword [edx + 0x6ac], ecx
mov eax, dword [ebp - 0x290]
add eax, 0x6c4
mov dword [ebp - 0x1e4], eax
mov ecx, dword [ebp - 0x1e4]
mov edx, dword [ecx]
sub edx, 0x10
mov dword [ebp - 0x1dc], edx
mov eax, dword [ebp - 0x1dc]
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov dword [ebp - 0x1d4], ecx
mov edx, dword [ebp - 0x1dc]
mov eax, dword [edx + 8]
sub eax, 0x104
mov dword [ebp - 0x1d8], eax
mov ecx, dword [ebp - 0x1d4]
or ecx, dword [ebp - 0x1d8]
jge 0x4065de
push 0x104
mov ecx, dword [ebp - 0x1e4]
call fcn.00402b80
mov edx, dword [ebp - 0x1e4]
mov eax, dword [edx]
mov dword [ebp - 0x1e0], eax
mov ecx, dword [ebp + 8]
push ecx
push 0x104
mov edx, dword [ebp - 0x1e0]
push edx
push 0x4d6adc
push str.UAPUK
push 0x4d7830
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x290]
add ecx, 0x6c4
call fcn.0040a930
mov eax, dword [ebp - 0x290]
mov ecx, dword [eax + 0x6c4]
mov edx, dword [ecx - 0xc]
mov dword [ebp - 0x1ec], edx
xor eax, eax
cmp dword [ebp - 0x1ec], 0
sete al
movzx ecx, al
neg ecx
sbb ecx, ecx
add ecx, 1
mov edx, dword [ebp - 0x290]
mov dword [edx + 0x6b0], ecx
mov dword [ebp - 0x94], 0
jmp 0x406676
mov eax, dword [ebp - 0x94]
add eax, 1
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0xff
jge 0x406717
mov ecx, dword [ebp - 0x94]
add ecx, 1
push ecx
push str.PublicFile_d
lea edx, [ebp - 0x48]
push edx
call fcn.004803da
add esp, 0xc
mov byte [ebp - 0x1a0], 0
push 0x103
push 0
lea eax, [ebp - 0x19f]
push eax
call fcn.00480360
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x104
lea edx, [ebp - 0x1a0]
push edx
push 0x4d6adc
lea eax, [ebp - 0x48]
push eax
push 0x4d7830
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
movsx ecx, byte [ebp - 0x1a0]
test ecx, ecx
jne 0x4066f1
jmp 0x406717
lea edx, [ebp - 0x1a0]
push edx
push 0
push 0x180
mov eax, dword [ebp - 0x290]
mov ecx, dword [eax + 0xb4c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x406667
push 0
push 0
push 0x18b
mov edx, dword [ebp - 0x290]
mov eax, dword [edx + 0xb4c]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jle 0x406755
push 0
push 1
push 0xf1
mov ecx, dword [ebp - 0x290]
mov edx, dword [ecx + 0xaf8]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x406771
push 0
push 0
push 0xf1
mov eax, dword [ebp - 0x290]
mov ecx, dword [eax + 0xaf8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x1a4], 0
jmp 0x40678c
mov edx, dword [ebp - 0x1a4]
add edx, 1
mov dword [ebp - 0x1a4], edx
cmp dword [ebp - 0x1a4], 0xff
jge 0x406a86
mov eax, dword [ebp - 0x1a4]
add eax, 1
push eax
push str.APP_d
lea ecx, [ebp - 0x90]
push ecx
call fcn.004803da
add esp, 0xc
mov edx, dword [ebp - 0x290]
add edx, 0x6b4
mov dword [ebp - 0x200], edx
mov eax, dword [ebp - 0x200]
mov ecx, dword [eax]
sub ecx, 0x10
mov dword [ebp - 0x1f8], ecx
mov edx, dword [ebp - 0x1f8]
mov eax, 1
sub eax, dword [edx + 0xc]
mov dword [ebp - 0x1f0], eax
mov ecx, dword [ebp - 0x1f8]
mov edx, dword [ecx + 8]
sub edx, 0x104
mov dword [ebp - 0x1f4], edx
mov eax, dword [ebp - 0x1f0]
or eax, dword [ebp - 0x1f4]
jge 0x406824
push 0x104
mov ecx, dword [ebp - 0x200]
call fcn.00402b80
mov ecx, dword [ebp - 0x200]
mov edx, dword [ecx]
mov dword [ebp - 0x1fc], edx
mov eax, dword [ebp + 8]
push eax
push 0x104
mov ecx, dword [ebp - 0x1fc]
push ecx
push 0x4d6adc
push 0x4d77e8
lea edx, [ebp - 0x90]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x290]
add ecx, 0x6b4
call fcn.0040a930
mov eax, dword [ebp - 0x290]
mov ecx, dword [eax + 0x6b4]
mov edx, dword [ecx - 0xc]
mov dword [ebp - 0x208], edx
xor eax, eax
cmp dword [ebp - 0x208], 0
sete al
movzx ecx, al
test ecx, ecx
je 0x406899
jmp 0x40677d
push 0x10505
call fcn.00481052
add esp, 4
mov dword [ebp - 0x4c], eax
push 0x10505
push 0
mov edx, dword [ebp - 0x4c]
push edx
call fcn.00480360
add esp, 0xc
mov eax, dword [ebp - 0x290]
add eax, 0x6b4
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 0x40691c
push 0
mov ecx, dword [ebp - 0x21c]
call fcn.00402b80
mov edx, dword [ebp - 0x21c]
mov eax, dword [edx]
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x4c]
add edx, 0x105
push edx
call fcn.00480570
add esp, 8
mov eax, dword [ebp + 8]
push eax
push 0x104
mov ecx, dword [ebp - 0x4c]
push ecx
push 0x4d6adc
push str.COMMENT
lea edx, [ebp - 0x90]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x4c]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x406987
mov edx, dword [ebp - 0x4c]
add edx, 0x105
push edx
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00480570
add esp, 8
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x1b0], 0
cmp dword [ebp - 0x1a8], 0xff
jge 0x406a3a
mov ecx, dword [ebp - 0x1a8]
add ecx, 1
push ecx
push str.ParaFile_d
lea edx, [ebp - 0x48]
push edx
call fcn.004803da
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 0x104
mov ecx, dword [ebp - 0x1b0]
imul ecx, ecx, 0x104
mov edx, dword [ebp - 0x4c]
lea eax, [edx + ecx + 0x209]
push eax
push 0x4d6adc
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x90]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x1b0]
imul eax, eax, 0x104
mov ecx, dword [ebp - 0x4c]
movsx edx, byte [ecx + eax + 0x209]
test edx, edx
je 0x406a26
mov eax, dword [ebp - 0x1b0]
add eax, 1
mov dword [ebp - 0x1b0], eax
mov ecx, dword [ebp - 0x1a8]
add ecx, 1
mov dword [ebp - 0x1a8], ecx
jmp 0x40699b
mov edx, dword [ebp - 0x4c]
push edx
push 0
push 0x180
mov eax, dword [ebp - 0x290]
mov ecx, dword [eax + 0x2d8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x1ac], eax
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x1ac]
push eax
push 0x19a
mov ecx, dword [ebp - 0x290]
mov edx, dword [ecx + 0x2d8]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40677d
mov eax, dword [ebp - 0x290]
add eax, 0x6b8
mov dword [ebp - 0x230], eax
mov ecx, dword [ebp - 0x230]
mov edx, dword [ecx]
sub edx, 0x10
mov dword [ebp - 0x228], edx
mov eax, dword [ebp - 0x228]
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov dword [ebp - 0x220], ecx
mov edx, dword [ebp - 0x228]
mov eax, dword [edx + 8]
sub eax, 0x104
mov dword [ebp - 0x224], eax
mov ecx, dword [ebp - 0x220]
or ecx, dword [ebp - 0x224]
jge 0x406aee
push 0x104
mov ecx, dword [ebp - 0x230]
call fcn.00402b80
mov edx, dword [ebp - 0x230]
mov eax, dword [edx]
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp + 8]
push ecx
push 0x104
mov edx, dword [ebp - 0x22c]
push edx
push 0x4d6adc
push str.Fontlib1
push str.FONT
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x290]
add ecx, 0x6b8
call fcn.0040a930
mov eax, dword [ebp - 0x290]
mov ecx, dword [eax + 0x6b8]
mov edx, dword [ecx - 0xc]
mov dword [ebp - 0x238], edx
xor eax, eax
cmp dword [ebp - 0x238], 0
sete al
movzx ecx, al
neg ecx
sbb ecx, ecx
add ecx, 1
mov edx, dword [ebp - 0x290]
mov dword [edx + 0x6a0], ecx
push 0
push 0
push 0x18b
mov eax, dword [ebp - 0x290]
mov ecx, dword [eax + 0x2d8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jle 0x406cec
push 0
push 0
push 0x186
mov edx, dword [ebp - 0x290]
mov eax, dword [edx + 0x2d8]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x199
mov ecx, dword [ebp - 0x290]
mov edx, dword [ecx + 0x2d8]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x290]
add eax, 0x6c8
mov dword [ebp - 0x260], eax
cmp dword [ebp - 0x4c], 0
jne 0x406bed
mov dword [ebp - 0x23c], 0
jmp 0x406bff
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.0047fdb0
add esp, 4
mov dword [ebp - 0x23c], eax
mov edx, dword [ebp - 0x23c]
push edx
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x260]
call fcn.004029b0
mov ecx, dword [ebp - 0x4c]
add ecx, 0x105
mov dword [ebp - 0x28c], ecx
mov edx, dword [ebp - 0x290]
add edx, 0x6b4
mov dword [ebp - 0x288], edx
cmp dword [ebp - 0x28c], 0
jne 0x406c4b
mov dword [ebp - 0x264], 0
jmp 0x406c60
mov eax, dword [ebp - 0x28c]
push eax
call fcn.0047fdb0
add esp, 4
mov dword [ebp - 0x264], eax
mov ecx, dword [ebp - 0x264]
push ecx
mov edx, dword [ebp - 0x28c]
push edx
mov ecx, dword [ebp - 0x288]
call fcn.004029b0
mov dword [ebp - 0x1b4], 0
mov dword [ebp - 0x1b8], 0
jmp 0x406c9e
mov eax, dword [ebp - 0x1b8]
add eax, 1
mov dword [ebp - 0x1b8], eax
mov ecx, dword [ebp - 0x1b8]
imul ecx, ecx, 0x104
mov edx, dword [ebp - 0x4c]
movsx eax, byte [edx + ecx + 0x209]
test eax, eax
je 0x406cec
mov ecx, dword [ebp - 0x1b8]
imul ecx, ecx, 0x104
mov edx, dword [ebp - 0x4c]
lea eax, [edx + ecx + 0x209]
push eax
push 0
push 0x180
mov ecx, dword [ebp - 0x290]
mov edx, dword [ecx + 0x238]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x406c8f
push 0
mov ecx, dword [ebp - 0x290]
call fcn.004459c8
mov eax, dword [ebp - 0x290]
mov dword [eax + 0xcf0], 0
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00480296
mov esp, ebp
pop ebp
ret 4