Function at 0x4569d0
Capabilities:
Check if file exists
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x523678
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x569638]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0x57109e
push 0x200000
mov dword [esp + 0x20], eax
call fcn.004f4b86
mov esi, eax
add esp, 8
mov dword [esp + 0x10], esi
test esi, esi
je 0x456f18
push 0x100000
push 0
push esi
call fcn.004fb000
mov eax, dword [edi]
add esp, 0xc
push eax
push 0x100000
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
cmp eax, 0xffffe
je 0x456b57
push 0
push eax
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call fcn.00456520
add esp, 0xc
mov dword [esp + 0x80], 0
mov edi, dword [esp + 0x38]
cmp edi, dword [esp + 0x3c]
jbe 0x456a82
call fcn.004f4962
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x3c]
cmp dword [esp + 0x38], ebx
jbe 0x456a95
call fcn.004f4962
test esi, esi
je 0x456a9f
cmp esi, dword [esp + 0x2c]
je 0x456aa4
call fcn.004f4962
cmp edi, ebx
je 0x456aec
test esi, esi
jne 0x456ae4
call fcn.004f4962
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x456abd
call fcn.004f4962
mov ecx, dword [ebp + 8]
push edi
add ecx, 8
push ecx
call fcn.00457170
test esi, esi
jne 0x456ae8
call fcn.004f4962
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x456adf
call fcn.004f4962
add edi, 4
jmp 0x456a86
mov eax, dword [esi]
jmp 0x456ab3
mov eax, dword [esi]
jmp 0x456ad5
mov dword [esp + 0x80], 0xffffffff
mov edi, dword [esp + 0x38]
test edi, edi
je 0x456b39
mov esi, dword [esp + 0x3c]
cmp edi, esi
je 0x456b2c
mov eax, dword [edi]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x456b25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 4
cmp edi, esi
jne 0x456b07
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004f3984
add esp, 4
mov edx, dword [esp + 0x2c]
xor eax, eax
push edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
call fcn.004f3984
mov edi, dword [ebp + 8]
add esp, 4
mov eax, dword [edi + 0x20]
mov esi, dword [eax]
mov edi, dword [edi + 8]
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], edi
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x20]
mov eax, dword [eax + 8]
test edi, edi
je 0x456b78
cmp edi, eax
je 0x456b7d
call fcn.004f4962
mov eax, dword [esp + 0x10]
cmp esi, ebx
je 0x456f08
push 0x100000
push 0
push eax
call fcn.004fb000
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx]
add esp, 0xc
test edi, edi
jne 0x456d5b
call fcn.004f4962
cmp esi, dword [edi + 0x18]
jne 0x456bb5
call fcn.004f4962
mov eax, dword [esi + 0xc]
mov esi, dword [esp + 0x10]
push ebx
push 0x100000
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
cmp eax, 0xffffe
je 0x456eed
push 0
push eax
lea edx, [esp + 0x64]
push edx
mov ecx, esi
call fcn.00456520
add esp, 0xc
mov dword [esp + 0x80], 1
mov ebx, dword [esp + 0x68]
cmp ebx, dword [esp + 0x6c]
jbe 0x456c01
call fcn.004f4962
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebx
lea ecx, [ecx]
mov esi, dword [esp + 0x6c]
cmp dword [esp + 0x68], esi
jbe 0x456c1f
call fcn.004f4962
test edi, edi
je 0x456c29
cmp edi, dword [esp + 0x5c]
je 0x456c2e
call fcn.004f4962
cmp ebx, esi
je 0x456e7e
test edi, edi
jne 0x456d62
call fcn.004f4962
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x456c4f
call fcn.004f4962
mov eax, dword [ebx]
mov esi, dword [eax - 0xc]
test edi, edi
jne 0x456d69
call fcn.004f4962
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x456c6d
call fcn.004f4962
mov ecx, dword [ebx]
push 0x3d
lea edx, [esp + 0x48]
push esi
push edx
call fcn.00456520
mov byte [esp + 0x8c], 2
mov eax, dword [0x570fac]
mov edx, dword [eax + 0xc]
add esp, 8
mov ecx, 0x570fac
mov dword [esp + 0x18], esp
mov esi, esp
call edx
add eax, 0x10
mov dword [esi], eax
lea esi, [esp + 0x48]
call fcn.004573a0
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov edx, eax
sub edx, ecx
sar edx, 2
cmp edx, 1
ja 0x456ccb
call fcn.004f4962
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
sub eax, ecx
sar eax, 2
lea ebx, [ecx + 4]
test eax, eax
ja 0x456ce0
call fcn.004f4962
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x24]
mov esi, ecx
test eax, eax
jne 0x456d70
call fcn.004f4962
xor eax, eax
mov ecx, dword [esp + 0x28]
cmp ecx, dword [eax + 0x18]
jne 0x456d03
call fcn.004f4962
mov edi, dword [esp + 0x28]
push esi
add edi, 0x10
call fcn.00418230
mov edx, dword [ebx]
mov edi, dword [eax]
lea esi, [edx - 0x10]
sub edi, 0x10
mov dword [esp + 0x14], eax
cmp esi, edi
je 0x456dde
cmp dword [edi + 0xc], 0
jl 0x456dd3
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x456dd3
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x456d74
cmp eax, dword [esi]
jne 0x456d74
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x456daf
mov edi, dword [edi]
jmp 0x456bab
mov eax, dword [edi]
jmp 0x456c45
mov eax, dword [edi]
jmp 0x456c63
mov eax, dword [eax]
jmp 0x456cf5
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x456f03
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.004f4154
add esp, 0x10
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x456dc8
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x14]
add ebx, 0x10
mov dword [ecx], ebx
jmp 0x456dde
mov ecx, dword [edx - 0xc]
push ecx
push edx
push eax
call fcn.0042be60
mov byte [esp + 0x80], 1
mov esi, dword [esp + 0x50]
xor ebx, ebx
cmp esi, ebx
je 0x456e32
mov eax, dword [esp + 0x54]
mov edi, eax
cmp esi, eax
je 0x456e29
lea ebx, [ebx]
mov eax, dword [esi]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x456e1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x456e00
mov esi, dword [esp + 0x50]
push esi
call fcn.004f3984
add esp, 4
mov ecx, dword [esp + 0x44]
push ecx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
call fcn.004f3984
mov eax, dword [esp + 0x20]
add esp, 4
cmp eax, ebx
jne 0x456e7a
call fcn.004f4962
xor eax, eax
mov edx, dword [esp + 0x20]
cmp edx, dword [eax + 0x10]
jb 0x456e68
call fcn.004f4962
add dword [esp + 0x20], 4
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
jmp 0x456c10
mov eax, dword [eax]
jmp 0x456e5a
mov dword [esp + 0x80], 0xffffffff
mov esi, dword [esp + 0x68]
test esi, esi
je 0x456ed2
mov edi, dword [esp + 0x6c]
cmp esi, edi
je 0x456ec5
lea esp, [esp]
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x456ebe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x456ea0
mov ecx, dword [esp + 0x68]
push ecx
call fcn.004f3984
add esp, 4
mov edx, dword [esp + 0x5c]
xor eax, eax
push edx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
call fcn.004f3984
add esp, 4
lea esi, [esp + 0x24]
call fcn.00492d60
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
jmp 0x456b67
call fcn.0042bdd0
push eax
call fcn.004f4972
mov eax, dword [esp + 0x1c]
mov edi, dword [ebp + 8]
add esp, 4
mov dword [edi + 4], eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4