Function at 0x434450
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 0x43447b
cmp cl, 0x5c
jne 0x434470
lea ecx, [eax + edx + 1]
mov dword [esp + 4], ecx
mov cl, byte [eax + edx + 1]
add eax, 1
test cl, cl
jne 0x434463
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 0x434577
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 0x434550
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 0x434535
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 0x434531
add dword [esp + 0x10], 0x20
add eax, 1
cmp eax, esi
mov dword [esp + 0x20], eax
jb 0x434507
jmp 0x434535
mov dword [esp + 0x24], eax
cmp dword [esp + 0x20], esi
jne 0x43455a
cmp dword [esp + 0x24], 0
jne 0x43455a
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 0x434613
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 0x4345e6
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 0x4345e2
add dword [esp + 0x10], 0x10
add ebp, 1
cmp ebp, esi
jb 0x4345c0
jmp 0x4345e6
mov dword [esp + 0x24], ebp
cmp ebp, esi
jne 0x4345f5
cmp dword [esp + 0x24], 0
je 0x434542
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