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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3f68
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x51f524]
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 0x4324f5
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x4324f5
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4324f5
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 [0x5220f4]
mov esi, eax
test cl, 1
jne 0x432318
or ecx, 1
mov dword [0x5220f4], ecx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x4ec640
mov dword [0x5220e8], 0x4ef6f4
mov dword [0x5220ec], eax
mov byte [0x5220f0], 0
call fcn.00466aa2
mov ecx, dword [0x5220f4]
add esp, 4
test cl, 2
jne 0x432376
or ecx, 2
mov dword [0x5220f8], 0x4ef70c
xor eax, eax
mov dword [0x5220f4], ecx
push 0x4ec670
mov dword [0x5220fc], 0x5220e8
mov dword [0x52210c], 2
mov dword [0x522104], 0
mov dword [0x522108], 0
mov dword [0x522110], eax
mov dword [0x522100], 0x5220f8
call fcn.00466aa2
add esp, 4
mov eax, dword [0x5220f8]
mov ecx, 0x5220f8
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 0
test esi, esi
je 0x4323ac
test esi, 0xffff0000
jne 0x4323ac
movzx eax, si
lea ecx, [ebp - 0x38]
push eax
call fcn.0040aa70
jmp 0x4323b5
push esi
lea ecx, [ebp - 0x38]
call fcn.0041a050
mov esi, dword [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
test esi, esi
jne 0x4323c8
mov dword [ebp - 0x40], esi
jmp 0x43240b
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4323d0
sub ecx, edx
sar ecx, 1
lea edi, [ecx + 1]
cmp edi, 0x3fffffff
jle 0x4323f3
mov dword [ebp - 0x40], 0
jmp 0x43240b
add edi, edi
mov eax, edi
call fcn.00466fa0
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.00430f50
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
push 0x4f3f10
push dword [eax]
call fcn.004bbddc
mov edi, eax
add esp, 8
mov dword [ebp - 0x3c], edi
test edi, edi
je 0x432484
push 2
push 0
push edi
call fcn.004bc527
push edi
call fcn.004bcb4f
push 0
push 0
push edi
mov dword [ebp - 0x38], eax
call fcn.004bc527
push dword [ebp - 0x38]
call fcn.004ac33c
mov edi, eax
add esp, 0x20
test edi, edi
je 0x432484
push dword [ebp - 0x3c]
push dword [ebp - 0x38]
push 1
push edi
call fcn.004bc08c
add esp, 0x10
cmp eax, dword [ebp - 0x38]
je 0x4324a2
push edi
call fcn.00497788
push dword [ebp - 0x3c]
call fcn.004bb6e4
add esp, 8
push edi
call fcn.00497788
add esp, 4
xor edi, edi
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x43249e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
jmp 0x4324f7
push dword [ebp - 0x3c]
call fcn.004bb6e4
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 0x43247b
push dword [ebp - 0x38]
mov eax, dword [ebp - 0x44]
push edi
push dword [eax]
call fcn.00402060
add esp, 0xc
test eax, eax
jne 0x43247b
push edi
call fcn.00497788
add esp, 4
mov edi, 1
jmp 0x432486
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.00466ab7
mov esp, ebp
pop ebp
ret 4