Function at 0x432f50
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1b68
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x51352c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x44], eax
cmp dword [eax], 0
mov esi, dword [ebp + 8]
mov dword [ebp - 0x3c], esi
je 0x4331e5
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x4331e5
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4331e5
push dword [esi]
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ecx, dword [0x515e8c]
mov esi, eax
test cl, 1
jne 0x433008
or ecx, 1
mov dword [0x515e8c], ecx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x4d9cb0
mov dword [0x515e80], 0x4dc6f4
mov dword [0x515e84], eax
mov byte [0x515e88], 0
call fcn.00465218
mov ecx, dword [0x515e8c]
add esp, 4
test cl, 2
jne 0x433066
or ecx, 2
mov dword [0x515e90], 0x4dc70c
xor eax, eax
mov dword [0x515e8c], ecx
push 0x4d9ce0
mov dword [0x515e94], 0x515e80
mov dword [0x515ea4], 2
mov dword [0x515e9c], 0
mov dword [0x515ea0], 0
mov dword [0x515ea8], eax
mov dword [0x515e98], 0x515e90
call fcn.00465218
add esp, 4
mov eax, dword [0x515e90]
mov ecx, 0x515e90
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 0
test esi, esi
je 0x43309c
test esi, 0xffff0000
jne 0x43309c
movzx eax, si
lea ecx, [ebp - 0x38]
push eax
call fcn.0040dd40
jmp 0x4330a5
push esi
lea ecx, [ebp - 0x38]
call fcn.0041cd80
mov esi, dword [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
test esi, esi
jne 0x4330b8
mov dword [ebp - 0x40], esi
jmp 0x4330fb
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4330c0
sub ecx, edx
sar ecx, 1
lea edi, [ecx + 1]
cmp edi, 0x3fffffff
jle 0x4330e3
mov dword [ebp - 0x40], 0
jmp 0x4330fb
add edi, edi
mov eax, edi
call fcn.00465720
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.00431be0
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
push 0x4e2178
push dword [eax]
call fcn.004ab88c
mov edi, eax
add esp, 8
mov dword [ebp - 0x3c], edi
test edi, edi
je 0x433174
push 2
push 0
push edi
call fcn.004abfd7
push edi
call fcn.004ac5ff
push 0
push 0
push edi
mov dword [ebp - 0x38], eax
call fcn.004abfd7
push dword [ebp - 0x38]
call fcn.0049bde9
mov edi, eax
add esp, 0x20
test edi, edi
je 0x433174
push dword [ebp - 0x3c]
push dword [ebp - 0x38]
push 1
push edi
call fcn.004abb3c
add esp, 0x10
cmp eax, dword [ebp - 0x38]
je 0x433192
push edi
call fcn.00487118
push dword [ebp - 0x3c]
call fcn.004ab194
add esp, 8
push edi
call fcn.00487118
add esp, 4
xor edi, edi
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x43318e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
jmp 0x4331e7
push dword [ebp - 0x3c]
call fcn.004ab194
push 9
push 8
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x44]
push dword [ebp - 0x40]
push dword [eax]
call fcn.00402020
add esp, 0x2c
test eax, eax
jne 0x43316b
push dword [ebp - 0x38]
mov eax, dword [ebp - 0x44]
push edi
push dword [eax]
call fcn.00402060
add esp, 0xc
test eax, eax
jne 0x43316b
push edi
call fcn.00487118
add esp, 4
mov edi, 1
jmp 0x433176
xor eax, eax
lea esp, [ebp - 0x50]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046522d
mov esp, ebp
pop ebp
ret 4