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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd0b8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5194b4]
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 0x435445
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x435445
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x435445
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 [0x51bdcc]
mov esi, eax
test cl, 1
jne 0x435268
or ecx, 1
mov dword [0x51bdcc], ecx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x4e71a0
mov dword [0x51bdc0], 0x4ea6e4
mov dword [0x51bdc4], eax
mov byte [0x51bdc8], 0
call fcn.00469a47
mov ecx, dword [0x51bdcc]
add esp, 4
test cl, 2
jne 0x4352c6
or ecx, 2
mov dword [0x51bdd0], 0x4ea6fc
xor eax, eax
mov dword [0x51bdcc], ecx
push 0x4e71d0
mov dword [0x51bdd4], 0x51bdc0
mov dword [0x51bde4], 2
mov dword [0x51bddc], 0
mov dword [0x51bde0], 0
mov dword [0x51bde8], eax
mov dword [0x51bdd8], 0x51bdd0
call fcn.00469a47
add esp, 4
mov eax, dword [0x51bdd0]
mov ecx, 0x51bdd0
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 0
test esi, esi
je 0x4352fc
test esi, 0xffff0000
jne 0x4352fc
movzx eax, si
lea ecx, [ebp - 0x38]
push eax
call fcn.004100a0
jmp 0x435305
push esi
lea ecx, [ebp - 0x38]
call fcn.0041f170
mov esi, dword [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
test esi, esi
jne 0x435318
mov dword [ebp - 0x40], esi
jmp 0x43535b
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x435320
sub ecx, edx
sar ecx, 1
lea edi, [ecx + 1]
cmp edi, 0x3fffffff
jle 0x435343
mov dword [ebp - 0x40], 0
jmp 0x43535b
add edi, edi
mov eax, edi
call fcn.00469f50
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.00433e80
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
push 0x4ee818
push dword [eax]
call fcn.004b6d7c
mov edi, eax
add esp, 8
mov dword [ebp - 0x3c], edi
test edi, edi
je 0x4353d4
push 2
push 0
push edi
call fcn.004b74c7
push edi
call fcn.004b7aef
push 0
push 0
push edi
mov dword [ebp - 0x38], eax
call fcn.004b74c7
push dword [ebp - 0x38]
call fcn.004a72dc
mov edi, eax
add esp, 0x20
test edi, edi
je 0x4353d4
push dword [ebp - 0x3c]
push dword [ebp - 0x38]
push 1
push edi
call fcn.004b702c
add esp, 0x10
cmp eax, dword [ebp - 0x38]
je 0x4353f2
push edi
call fcn.00492728
push dword [ebp - 0x3c]
call fcn.004b6684
add esp, 8
push edi
call fcn.00492728
add esp, 4
xor edi, edi
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4353ee
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
jmp 0x435447
push dword [ebp - 0x3c]
call fcn.004b6684
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 0x4353cb
push dword [ebp - 0x38]
mov eax, dword [ebp - 0x44]
push edi
push dword [eax]
call fcn.00402060
add esp, 0xc
test eax, eax
jne 0x4353cb
push edi
call fcn.00492728
add esp, 4
mov edi, 1
jmp 0x4353d6
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.00469a5c
mov esp, ebp
pop ebp
ret 4