Function at 0x6413b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebx], eax
push esi
mov dword [ebx + 4], eax
push edi
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
push 3
lea eax, [ebx + 0xc]
push 3
mov dword [esp + 0x24], eax
mov dword [eax], 0xffffffff
mov eax, dword [ebp + 0xc]
push SysReAllocStringLen
push eax
mov eax, 0x3e8
call fcn.004abf70
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0xc
lea edx, [esp + 0x4c]
mov esi, eax
push edx
push esi
mov dword [esp + 0x20], esi
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x64163d
cmp eax, 0xc
jne 0x64163d
cmp dword [esp + 0x40], 0x46464952
jne 0x64163d
cmp dword [esp + 0x48], 0x20495641
jne 0x64163d
push 0
lea eax, [esp + 0x1c]
push eax
push 0xc
lea ecx, [esp + 0x58]
push ecx
push esi
call edi
cmp dword [esp + 0x18], 0xc
jne 0x64163d
cmp dword [esp + 0x4c], 0x5453494c
jne 0x64163d
cmp dword [esp + 0x54], 0x6c726468
jne 0x64163d
push 0
lea edx, [esp + 0x1c]
push edx
push 8
lea eax, [esp + 0x38]
push eax
push esi
call edi
cmp dword [esp + 0x18], 8
jne 0x64163d
cmp dword [esp + 0x2c], 0x68697661
jne 0x64163d
lea edx, [esp + 0xc]
call fcn.00402110
lea ecx, [esp + 0xc]
mov dword [ebx], eax
push ecx
mov eax, 0x1c
call fcn.00496fb0
lea edx, [esp + 0xc]
call fcn.00402110
lea edx, [esp + 0xc]
mov dword [ebx + 4], eax
call fcn.00402110
lea edx, [esp + 0xc]
mov dword [ebx + 8], eax
push edx
mov eax, 0x10
call fcn.00496fb0
push 0
lea eax, [esp + 0x18]
push eax
push 0xc
lea ecx, [esp + 0x40]
push ecx
push esi
call edi
cmp dword [esp + 0x14], 0xc
jne 0x64163d
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
jmp 0x641510
cmp dword [esp + 0x34], 0x5453494c
jne 0x64163d
cmp dword [esp + 0x3c], 0x6c727473
jne 0x64163d
push 0
lea edx, [esp + 0x14]
push edx
push 8
lea eax, [esp + 0x30]
push eax
push esi
call edi
cmp dword [esp + 0x10], 8
jne 0x6415cf
jmp 0x641550
mov eax, dword [esp + 0x24]
cmp eax, 0x68727473
jne 0x641585
push 0
lea ecx, [esp + 0x24]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push esi
mov dword [esp + 0x2c], 0
call edi
cmp dword [esp + 0x18], 0x73646976
je 0x6415ed
sub dword [esp + 0x28], 4
jmp 0x64158c
cmp eax, 0x5453494c
je 0x6415c0
mov eax, dword [esp + 0x28]
add eax, 1
and eax, 0xfffffffe
mov dword [esp + 0x28], eax
jl 0x6415cf
push 1
cdq
push 0
push edx
push eax
push esi
call ebx
push 0
lea eax, [esp + 0x14]
push eax
push 8
lea ecx, [esp + 0x30]
push ecx
push esi
call edi
cmp dword [esp + 0x10], 8
je 0x641550
jmp 0x6415cf
lea edx, [esp + 0xc]
push edx
mov eax, 0xfffffff8
call fcn.00496fb0
push 0
lea eax, [esp + 0x18]
push eax
push 0xc
lea ecx, [esp + 0x40]
push ecx
push esi
call edi
cmp dword [esp + 0x14], 0xc
je 0x641510
jmp 0x64163d
mov edi, dword [esp + 0x1c]
lea edx, [esp + 0xc]
push edx
mov ecx, 4
mov edx, edi
mov dword [edi], 0
call fcn.004020f0
movsx eax, byte [edi]
push eax
call fcn.0069daaa
movsx ecx, byte [edi + 1]
push ecx
mov byte [edi], al
call fcn.0069daaa
movsx edx, byte [edi + 2]
push edx
mov byte [edi + 1], al
call fcn.0069daaa
mov byte [edi + 2], al
movsx eax, byte [edi + 3]
push eax
call fcn.0069daaa
add esp, 0x10
mov byte [edi + 3], al
cmp esi, 0xffffffff
je 0x641649
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8