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

Disassembly:
push 0xffffffffffffffff
push 0x51cff0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
mov eax, dword [0x565e78]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x70], eax
mov eax, dword [edi]
cmp eax, 0xea60
jne 0x43981d
call fcn.004fa853
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0x80], 0
call fcn.004415b0
test al, al
mov esi, dword [esp + 8]
je 0x43988e
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x43988e
lea eax, [esi - 0x10]
mov dword [esp + 0x7c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x439813
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
jmp 0x4399d7
cmp eax, 0xea61
jne 0x439839
mov ecx, dword [0x56bab4]
mov edx, dword [ecx - 0xc]
xor eax, eax
test edx, edx
setne al
jmp 0x4399d7
cmp eax, 0xea62
jne 0x4398b9
call fcn.004fa853
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0x80], 1
call fcn.00441750
test al, al
mov esi, dword [esp + 8]
je 0x43988e
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x43988e
lea ecx, [esp + 8]
call fcn.00401ab0
mov eax, 1
jmp 0x4399d7
lea eax, [esi - 0x10]
mov dword [esp + 0x7c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4399d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x4399d5
mov eax, edi
call fcn.00441480
push eax
lea ecx, [esp + 0x38]
call fcn.00401e10
mov dword [esp + 0x7c], 2
mov eax, dword [esp + 0x48]
xor esi, esi
cmp eax, esi
je 0x4399cc
cmp dword [esp + 0x4c], 0x10
mov eax, dword [esp + 0x38]
jae 0x4398ef
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
lea ecx, [esp + 0x34]
je 0x4399d0
mov eax, dword [esp + 0x48]
push 3
add eax, 0xfffffffd
push eax
push ecx
mov edx, 0x541ad4
call fcn.0046c890
cmp dword [esp + 0x4c], 0x10
mov eax, dword [esp + 0x38]
jae 0x439926
lea eax, [esp + 0x38]
push eax
push 0x20
lea edx, [esp + 0x58]
push edx
push esi
push str.version
push str.setup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
call fcn.00401e10
push 0x2e
lea ecx, [esp + 0xc]
push ecx
push eax
mov byte [esp + 0x88], 3
call fcn.0046c780
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x7c], 2
call fcn.004cfac0
push 0x2e
lea edx, [esp + 0x14]
push edx
add edi, 0x24
push edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call fcn.0046c780
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
add esp, 0xc
cmp eax, ecx
jb 0x4399be
ja 0x4399ae
mov ecx, dword [esp + 8]
cmp ecx, dword [esp + 0x10]
jb 0x4399be
lea ecx, [esp + 0x34]
call fcn.004cfac0
mov eax, 1
jmp 0x4399d7
lea ecx, [esp + 0x34]
call fcn.004cfac0
or eax, 0xffffffff
jmp 0x4399d7
lea ecx, [esp + 0x34]
call fcn.004cfac0
xor eax, eax
mov ecx, dword [esp + 0x74]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x6c]
pop esi
call fcn.004b6cac
add esp, 0x78
ret 4