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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x466f86
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x18
call fcn.00439ad0
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x435b5e
push dword [ebp + 8]
mov ecx, eax
call fcn.004034b0
mov esi, eax
jmp 0x435b60
xor esi, esi
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0xffffffff
jb 0x435b71
mov ecx, dword [esi]
jmp 0x435b73
mov ecx, esi
mov edi, 0x5c
cmp dword [esi + 0x14], 8
jb 0x435b82
mov edx, dword [esi]
jmp 0x435b84
mov edx, esi
mov eax, dword [esi + 0x10]
lea eax, [edx + eax*2]
cmp ecx, eax
je 0x435b9c
cmp word [ecx], 0x2f
jne 0x435b97
mov word [ecx], di
add ecx, 2
jmp 0x435b78
cmp dword [esi + 0x14], 8
mov ecx, dword [esi + 0x10]
jb 0x435ba9
mov eax, dword [esi]
jmp 0x435bab
mov eax, esi
cmp word [eax + ecx*2 - 2], di
je 0x435bc0
push 1
push 0x472938
mov ecx, esi
call fcn.004117e0
push 0x18
call fcn.00439ad0
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 1
test edi, edi
je 0x435c21
mov edx, dword [ebp + 0xc]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp word [edx], ax
jne 0x435c02
xor ecx, ecx
push ecx
push edx
mov ecx, edi
call fcn.00403dd0
jmp 0x435c23
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x435c07
sub ecx, ebx
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00403dd0
jmp 0x435c23
xor edi, edi
cmp dword [edi + 0x14], 8
mov dword [ebp - 4], 0xffffffff
jb 0x435c34
mov eax, dword [edi]
jmp 0x435c36
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 0x435d8f
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x435d52
cmp dword [ebp - 0x20], 0
jne 0x435d52
lea eax, [ebx + 1]
and eax, 0xfffffffe
push eax
mov dword [ebp - 0x18], eax
call fcn.00438f0e
push dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
push 0
push eax
call fcn.0043a7a0
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 0x435d47
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
cmp ebx, 3
jbe 0x435cda
mov ecx, 0xfeff
cmp word [eax], cx
jne 0x435cda
mov ebx, dword [ebp - 0x18]
lea ecx, [eax + 2]
shr ebx, 1
dec ebx
jmp 0x435d72
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 0x435d3a
xor ecx, ecx
add eax, 0x200
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00438f0e
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 0x435d69
push eax
call fcn.0043acf3
add esp, 4
push esi
push ebx
push dword [ebp - 0x10]
call fcn.00433180
add esp, 0xc
push dword [ebp - 0x10]
call fcn.0043acf3
add esp, 4
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push esi
push edi
call fcn.00434230
add esp, 0xc
jmp 0x435da4
mov ebx, dword [ebp - 0x18]
mov ecx, eax
test eax, eax
je 0x435d3a
push esi
push ebx
push ecx
call fcn.00433320
mov eax, dword [ebp - 0x14]
add esp, 0xc
test eax, eax
je 0x435d47
push eax
call fcn.0043acf3
add esp, 4
jmp 0x435d47
push 1
push esi
push edi
call fcn.00434230
push 1
push esi
push esi
call fcn.00434230
add esp, 0x18
cmp dword [esi + 0x14], 8
jb 0x435db4
push dword [esi]
call fcn.0043986c
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push esi
mov word [esi], ax
call fcn.0043986c
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret