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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4708f0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x48f1ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x4c], edi
cmp dword [eax + 0x14], 8
jb 0x4343af
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x40], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4345e1
cmp esi, 0xffffffff
je 0x4345e1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x1000
push eax
push 0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x434421
mov ecx, edi
mov dword [edi], eax
mov dword [edi + 4], eax
call fcn.00425a60
mov dword [edi], eax
mov dword [ebp - 4], 2
jmp 0x434607
push 0
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x2c]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], eax
mov eax, 0x5a4d
mov byte [ebp - 4], 3
cmp word [ebx], ax
je 0x43447a
mov ecx, edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.00425a60
push 0x4000
push dword [ebp - 0x2c]
mov dword [edi], eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 4], 4
jmp 0x434607
mov ecx, dword [ebx + 0x3c]
mov edx, 0x10b
add ecx, ebx
mov dword [ebp - 0x44], ecx
movzx eax, word [ecx + 0x18]
cmp ax, dx
je 0x4344b2
mov ecx, edi
call fcn.00431c10
push 0x4000
push dword [ebp - 0x2c]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 4], 6
jmp 0x434607
movzx eax, word [ecx + 0x14]
add eax, 0x18
add eax, ecx
cmp dword [ecx + 0x84], 0
mov dword [ebp - 0x3c], eax
jne 0x4344e9
mov ecx, edi
call fcn.00431c10
push 0x4000
push dword [ebp - 0x2c]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 4], 7
jmp 0x434607
lea ecx, [ebp - 0x38]
call fcn.00431c10
mov eax, dword [ebp - 0x44]
push eax
push dword [ebp - 0x3c]
mov byte [ebp - 4], 8
push dword [eax + 0x80]
call fcn.00432e10
add eax, 0xc
add esp, 0xc
add eax, ebx
mov dword [ebp - 0x30], eax
mov eax, dword [eax]
test eax, eax
je 0x434599
mov esi, dword [ebp - 0x44]
mov edi, dword [ebp - 0x30]
push esi
push dword [ebp - 0x3c]
push eax
call fcn.00432e10
add esp, 0xc
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea edx, [ebx + eax]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x30], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x434550
sub ecx, dword [ebp - 0x30]
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0040bee0
push dword [ebp - 0x50]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 9
push eax
push 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x38]
call fcn.0041a1e0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.00409a40
mov eax, dword [edi + 0x14]
add edi, 0x14
test eax, eax
jne 0x434522
mov esi, dword [ebp - 0x40]
mov edi, dword [ebp - 0x4c]
mov ecx, edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.00425a60
mov ecx, dword [ebp - 0x38]
mov dword [edi], ecx
mov ecx, dword [edi + 4]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x38]
mov dword [edi + 4], eax
call fcn.00421210
push 0x4000
push dword [ebp - 0x2c]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 4], 0xa
jmp 0x434607
mov ecx, edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.00425a60
mov dword [edi], eax
mov dword [ebp - 4], 1
test esi, esi
je 0x43460e
cmp esi, 0xffffffff
je 0x43460e
push esi
call dword [0x479820]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045fc2d
mov esp, ebp
pop ebp
ret