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

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x14]
mov cl, byte [edx]
xor eax, eax
test cl, cl
mov dword [esp + 4], edx
je 0x43599b
cmp cl, 0x5c
jne 0x435990
lea ecx, [eax + edx + 1]
mov dword [esp + 4], ecx
mov cl, byte [eax + edx + 1]
add eax, 1
test cl, cl
jne 0x435983
push ebx
push ebp
mov ebp, dword [esp + 0x18]
mov edx, dword [ebp + 4]
push esi
push edi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x10
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [ebp + 4]
push 0
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push 0x10
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [edi + 0xb], 0x32
mov esi, dword [edi + 0xc]
push edi
jne 0x435a97
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ebx, [esi + esi*4]
add ebx, ebx
add ebx, ebx
add ebx, ebx
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x435a70
mov eax, dword [ebp + 4]
push 0
lea edx, [esp + 0x1c]
push edx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
cmp esi, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
jbe 0x435a55
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
mov eax, dword [esp + 0x20]
je 0x435a51
add dword [esp + 0x10], 0x20
add eax, 1
cmp eax, esi
mov dword [esp + 0x20], eax
jb 0x435a27
jmp 0x435a55
mov dword [esp + 0x24], eax
cmp dword [esp + 0x20], esi
jne 0x435a7a
cmp dword [esp + 0x24], 0
jne 0x435a7a
push edi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x24]
lea edx, [ecx + esi*4]
mov eax, dword [edi + edx*8]
mov esi, dword [edi + edx*8 + 4]
lea ecx, [edi + edx*8]
lea ecx, [ebx + eax + 0x10]
mov dword [ebp + 8], ecx
jmp 0x435b33
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ebx, [esi + esi*2]
add ebx, ebx
add ebx, ebx
add ebx, ebx
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0
lea edx, [esp + 0x1c]
push edx
mov edi, eax
mov eax, dword [ebp + 4]
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor ebp, ebp
test esi, esi
mov dword [esp + 0x24], ebp
jbe 0x435b06
mov dword [esp + 0x10], edi
lea esp, [esp]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x435b02
add dword [esp + 0x10], 0x10
add ebp, 1
cmp ebp, esi
jb 0x435ae0
jmp 0x435b06
mov dword [esp + 0x24], ebp
cmp ebp, esi
jne 0x435b15
cmp dword [esp + 0x24], 0
je 0x435a62
mov eax, dword [esp + 0x24]
lea ecx, [eax + esi*2]
mov eax, dword [edi + ecx*8]
mov esi, dword [edi + ecx*8 + 4]
lea ecx, [edi + ecx*8]
mov ecx, dword [esp + 0x20]
lea edx, [ebx + eax + 0x10]
mov dword [ecx + 8], edx
mov ebp, ecx
mov edx, dword [ebp + 4]
push 1
push 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, ebx
neg eax
pop edi
sbb eax, eax
and eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret