Function at 0x439540
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ab9a
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x4c2010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x244], ecx
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.004720a0
add esp, 0xc
mov ecx, dword [ebp - 0x244]
add ecx, 0x26c
call fcn.00429180
push eax
push 0x4a0c8c
push 0x104
lea edx, [ebp - 0x218]
push edx
call fcn.00436f30
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x439d7c
lea ecx, [ebp - 0x218]
push ecx
push 0
push 0x4a0c94
push 0x4a0ca8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp - 0x244]
mov dword [edx + 0x1c], eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0x4a0cb8
push 0x4a0cc4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x244]
mov dword [ecx + 0x20], eax
lea edx, [ebp - 0x218]
push edx
push 0
push 0x4a0cd4
push 0x4a0ce0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x244]
mov dword [ecx + 0x28], eax
lea edx, [ebp - 0x218]
push edx
push 0
push 0x4a0cf0
push 0x4a0d00
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x244]
mov dword [ecx + 0x2c], eax
lea edx, [ebp - 0x218]
push edx
push 0
push 0x4a0d10
push 0x4a0d18
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x244]
mov dword [ecx + 0x24], eax
lea edx, [ebp - 0x218]
push edx
push 0x104
mov eax, dword [ebp - 0x244]
add eax, 0x30
push eax
push 0x4a0d28
push 0x4a0d30
push 0x4a0d4c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x218]
push ecx
push 1
push 0x4a0d5c
push 0x4a0d78
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp - 0x244]
mov dword [edx + 0x238], eax
lea eax, [ebp - 0x218]
push eax
push 1
push 0x4a0d88
push 0x4a0db4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x244]
mov dword [ecx + 0x23c], eax
lea edx, [ebp - 0x218]
push edx
push 0
push 0x4a0dc4
push 0x4a0ddc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x244]
mov dword [ecx + 0x18], eax
lea edx, [ebp - 0x218]
push edx
push 0
push 0x4a0dec
push 0x4a0e04
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x244]
mov dword [ecx + 0x240], eax
lea edx, [ebp - 0x218]
push edx
push 0
push 0x4a0e14
push 0x4a0e28
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x244]
mov dword [ecx + 0x244], eax
lea edx, [ebp - 0x218]
push edx
push 0
push 0x4a0e38
push 0x4a0e60
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x244]
mov dword [ecx + 0x248], eax
lea edx, [ebp - 0x218]
push edx
push 0
push 0x4a0e70
push 0x4a0e9c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x244]
mov dword [ecx + 0x260], eax
mov edx, dword [ebp - 0x244]
cmp dword [edx + 0x248], 0
je 0x439afe
mov eax, dword [ebp - 0x244]
mov ecx, dword [eax + 0x248]
lea edx, [ecx + ecx + 2]
mov dword [ebp - 0x248], edx
push 4
lea ecx, [ebp - 0x228]
call fcn.00401320
lea ecx, [ebp - 0x228]
call fcn.00401d20
mov dword [ebp - 4], 0
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x248]
push ecx
mov edx, dword [ebp - 0x248]
push edx
lea ecx, [ebp - 0x228]
call fcn.0043ab10
push eax
push 0
push 0x4a0eac
push 0x4a0ec8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x23c], 0
push 4
lea ecx, [ebp - 0x21c]
call fcn.00401320
lea ecx, [ebp - 0x21c]
call fcn.00401d20
mov byte [ebp - 4], 1
push 4
lea ecx, [ebp - 0x224]
call fcn.00401320
lea ecx, [ebp - 0x224]
call fcn.00401d20
mov byte [ebp - 4], 2
push 4
lea ecx, [ebp - 0x234]
call fcn.00401320
lea ecx, [ebp - 0x234]
call fcn.00401d20
mov byte [ebp - 4], 3
push 4
lea ecx, [ebp - 0x230]
call fcn.00401320
push 1
push 0x3f
lea ecx, [ebp - 0x230]
call fcn.0043a970
mov byte [ebp - 4], 4
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x230]
call fcn.00401d70
push eax
lea ecx, [ebp - 0x25c]
push ecx
lea ecx, [ebp - 0x228]
call fcn.0043a810
mov dword [ebp - 0x254], eax
mov edx, dword [ebp - 0x254]
mov dword [ebp - 0x258], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x258]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00429160
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x25c]
call fcn.00401c60
push 0x4a0ed8
lea ecx, [ebp - 0x21c]
call fcn.0043a7a0
push eax
call fcn.0043a6e0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x439ab0
push 0x3e
lea ecx, [ebp - 0x21c]
call fcn.0043a7c0
mov dword [ebp - 0x24c], eax
mov edx, dword [ebp - 0x24c]
push edx
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00428d20
mov dword [ebp - 0x260], eax
mov ecx, dword [ebp - 0x260]
mov dword [ebp - 0x298], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x298]
push edx
lea ecx, [ebp - 0x234]
call fcn.00429160
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x264]
call fcn.00401c60
lea ecx, [ebp - 0x21c]
call fcn.004022c0
sub eax, dword [ebp - 0x24c]
sub eax, 1
push eax
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0043a710
mov dword [ebp - 0x268], eax
mov ecx, dword [ebp - 0x268]
mov dword [ebp - 0x26c], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x26c]
push edx
lea ecx, [ebp - 0x224]
call fcn.00429160
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x270]
call fcn.00401c60
mov eax, dword [ebp - 0x244]
add eax, 8
push eax
lea ecx, [ebp - 0x21c]
call fcn.00429160
push 0x5c
lea ecx, [ebp - 0x21c]
call fcn.00429100
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.00429140
lea ecx, [ebp - 0x21c]
call fcn.00401d70
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x439a4f
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x234]
push eax
mov ecx, dword [ebp - 0x244]
add ecx, 0x24c
call fcn.00428810
mov ecx, eax
call fcn.00429160
lea ecx, [ebp - 0x23c]
push ecx
lea ecx, [ebp - 0x230]
call fcn.00401d70
push eax
lea edx, [ebp - 0x27c]
push edx
lea ecx, [ebp - 0x228]
call fcn.0043a810
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x274]
mov dword [ebp - 0x278], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x278]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.00429160
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x27c]
call fcn.00401c60
jmp 0x4398fa
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x230]
call fcn.00401c60
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x234]
call fcn.00401c60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x224]
call fcn.00401c60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x21c]
call fcn.00401c60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.00401c60
mov edx, dword [ebp - 0x244]
cmp dword [edx + 0x260], 0
je 0x439d75
mov eax, dword [ebp - 0x244]
mov ecx, dword [eax + 0x260]
lea edx, [ecx + ecx + 2]
mov dword [ebp - 0x250], edx
push 4
lea ecx, [ebp - 0x22c]
call fcn.00401320
lea ecx, [ebp - 0x22c]
call fcn.00401d20
mov dword [ebp - 4], 9
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x250]
push ecx
mov edx, dword [ebp - 0x250]
push edx
lea ecx, [ebp - 0x22c]
call fcn.0043ab10
push eax
push 0
push 0x4a0edc
push 0x4a0ef4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 4
lea ecx, [ebp - 0x238]
call fcn.00401320
push 1
push 0x3b
lea ecx, [ebp - 0x238]
call fcn.0043a970
mov byte [ebp - 4], 0xa
push 4
lea ecx, [ebp - 0x220]
call fcn.00401320
lea ecx, [ebp - 0x220]
call fcn.00401d20
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x240], 0
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x238]
call fcn.00401d70
push eax
lea ecx, [ebp - 0x288]
push ecx
lea ecx, [ebp - 0x22c]
call fcn.0043a810
mov dword [ebp - 0x280], eax
mov edx, dword [ebp - 0x280]
mov dword [ebp - 0x284], edx
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x284]
push eax
lea ecx, [ebp - 0x220]
call fcn.00429160
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x288]
call fcn.00401c60
push 0x4a0f04
lea ecx, [ebp - 0x220]
call fcn.0043a7a0
push eax
call fcn.0043a6e0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x439d45
lea ecx, [ebp - 0x220]
call fcn.00401d70
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x439ce4
lea edx, [ebp - 0x29c]
push edx
mov ecx, dword [ebp - 0x244]
add ecx, 0x254
call fcn.00401930
push eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x2a0]
push ecx
mov ecx, dword [ebp - 0x244]
add ecx, 0x254
call fcn.00401930
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x2a4]
push eax
mov ecx, dword [ebp - 0x244]
add ecx, 0x254
call fcn.00401990
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x2a8]
push edx
call fcn.0042d130
add esp, 0x10
mov ecx, eax
call fcn.00401fc0
movzx eax, al
test eax, eax
je 0x439ce4
lea ecx, [ebp - 0x220]
push ecx
mov ecx, dword [ebp - 0x244]
add ecx, 0x254
call fcn.004286a0
lea edx, [ebp - 0x240]
push edx
lea ecx, [ebp - 0x238]
call fcn.00401d70
push eax
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x22c]
call fcn.0043a810
mov dword [ebp - 0x28c], eax
mov ecx, dword [ebp - 0x28c]
mov dword [ebp - 0x290], ecx
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x290]
push edx
lea ecx, [ebp - 0x220]
call fcn.00429160
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x294]
call fcn.00401c60
jmp 0x439c1b
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x220]
call fcn.00401c60
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x238]
call fcn.00401c60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.00401c60
mov eax, 1
jmp 0x439d7e
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00458fdd
mov esp, ebp
pop ebp
ret