Function at 0x4351d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46706e
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x483004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x18
call fcn.004369d3
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x43521e
push dword [ebp + 8]
mov ecx, eax
call fcn.00402e10
mov esi, eax
jmp 0x435220
xor esi, esi
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0xffffffff
jb 0x435231
mov ecx, dword [esi]
jmp 0x435233
mov ecx, esi
mov edi, 0x5c
cmp dword [esi + 0x14], 8
jb 0x435242
mov edx, dword [esi]
jmp 0x435244
mov edx, esi
mov eax, dword [esi + 0x10]
lea eax, [edx + eax*2]
cmp ecx, eax
je 0x43525c
cmp word [ecx], 0x2f
jne 0x435257
mov word [ecx], di
add ecx, 2
jmp 0x435238
cmp dword [esi + 0x14], 8
mov ecx, dword [esi + 0x10]
jb 0x435269
mov eax, dword [esi]
jmp 0x43526b
mov eax, esi
cmp word [eax + ecx*2 - 2], di
je 0x435280
push 1
push 0x471aac
mov ecx, esi
call fcn.0040e850
push 0x18
call fcn.004369d3
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 1
test edi, edi
je 0x4352fa
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x14], 7
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x4352c0
mov eax, dword [edi]
jmp 0x4352c2
mov eax, edi
mov edx, dword [ebp + 0xc]
xor ecx, ecx
mov word [eax], cx
cmp word [edx], cx
jne 0x4352da
push ecx
push edx
mov ecx, edi
call fcn.00403220
jmp 0x4352fc
mov ecx, edx
lea ebx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4352e0
sub ecx, ebx
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00403220
jmp 0x4352fc
xor edi, edi
cmp dword [edi + 0x14], 8
mov dword [ebp - 4], 0xffffffff
jb 0x43530d
mov eax, dword [edi]
jmp 0x43530f
mov eax, edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x435468
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x43542b
cmp dword [ebp - 0x20], 0
jne 0x43542b
lea eax, [ebx + 1]
and eax, 0xfffffffe
push eax
mov dword [ebp - 0x18], eax
call fcn.00436c49
push dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
push 0
push eax
call fcn.004398f0
add esp, 0x10
lea eax, [ebp - 0x24]
push 0
push eax
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x435420
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
cmp ebx, 3
jbe 0x4353b3
mov ecx, 0xfeff
cmp word [eax], cx
jne 0x4353b3
mov ebx, dword [ebp - 0x18]
lea ecx, [eax + 2]
shr ebx, 1
dec ebx
jmp 0x43544b
push 0
push 0
push ebx
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x18], eax
test eax, eax
jle 0x435413
xor ecx, ecx
add eax, 0x200
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00436c49
add esp, 4
mov dword [ebp - 0x14], eax
push dword [ebp - 0x18]
push eax
push ebx
push dword [ebp - 0x10]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
mov eax, dword [ebp - 0x14]
jne 0x435442
push eax
call fcn.00436c52
add esp, 4
push esi
push ebx
push dword [ebp - 0x10]
call fcn.00430bb0
add esp, 0xc
push dword [ebp - 0x10]
call fcn.00436c52
add esp, 4
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push esi
push edi
call fcn.00432eb0
add esp, 0xc
jmp 0x43547d
mov ebx, dword [ebp - 0x18]
mov ecx, eax
test eax, eax
je 0x435413
push esi
push ebx
push ecx
call fcn.00430de0
mov eax, dword [ebp - 0x14]
add esp, 0xc
test eax, eax
je 0x435420
push eax
call fcn.00436c52
add esp, 4
jmp 0x435420
push 1
push esi
push edi
call fcn.00432eb0
push 1
push esi
push esi
call fcn.00432eb0
add esp, 0x18
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x435490
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00403390
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x4354a8
mov eax, dword [esi]
jmp 0x4354aa
mov eax, esi
xor ecx, ecx
push 0x18
push esi
mov word [eax], cx
call fcn.00436a0b
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret