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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47925b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
mov eax, dword [0x49ae1c]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
lea esi, [ecx + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
push ebx
push eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esi]
push ebx
mov edi, eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ecx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x43394a
call fcn.00401430
cmp eax, ebx
jl 0x433a31
mov eax, esi
mov dword [ebp - 0x48], 0xffffffff
mov dword [ebp - 0x6c], 0x47fc64
mov dword [ebp - 0x68], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [ebp - 0x5c]
push edx
mov edx, dword [eax]
push 4
lea ecx, [ebp - 0x48]
push ecx
push edx
mov byte [ebp - 4], 1
call ebx
test eax, eax
jne 0x433989
call fcn.00401430
test eax, eax
jge 0x433989
jmp fcn.0042f780
cmp dword [ebp - 0x48], 0x52414e
je 0x43399b
push 0xe
push str.Not_a_nar_file
jmp 0x4339d8
mov edx, dword [ebp - 0x68]
push 0
lea eax, [ebp - 0x5c]
push eax
push 4
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], 0xffffffff
mov eax, dword [edx]
push ecx
push eax
call ebx
test eax, eax
jne 0x4339c8
call fcn.00401430
test eax, eax
jge 0x4339c8
jmp fcn.0042f780
cmp dword [ebp - 0x64], 0x1000000
je 0x4339f8
push 0x10
push str.Version_mismatch
mov ecx, dword [ebp - 0x44]
add ecx, 0x18
call fcn.00403ed0
mov eax, dword [esi]
test eax, eax
je 0x433a31
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
jmp 0x433a31
push 2
or ebx, 0xffffffff
push ebx
push 0xfffffffffffffffc
mov ecx, esi
mov dword [ebp - 0x48], ebx
call fcn.0042e040
push 4
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x6c]
call fcn.0042f7c0
cmp dword [ebp - 0x48], 0x52414e
je 0x433a4c
push str.Not_a_nar_file
mov ecx, dword [ebp - 0x44]
add ecx, 0x18
call fcn.00404230
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00447453
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 2
push ebx
push 0xfffffffffffffff8
mov ecx, esi
call fcn.0042e040
push 4
lea edx, [ebp - 0x54]
push edx
mov ecx, esi
mov dword [ebp - 0x54], ebx
call fcn.0042dff0
mov eax, dword [ebp - 0x54]
cmp eax, ebx
jne 0x433a77
call fcn.0042e140
push eax
jmp 0x433a26
xor eax, 0x4076551f
xor ebx, ebx
push ebx
sub edi, eax
push ebx
sub edi, 8
push edi
mov ecx, esi
mov dword [ebp - 0x54], eax
call fcn.0042e040
mov dword [ebp - 0x40], 0x47fc5c
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x18], bl
mov eax, dword [0x498b38]
push ebx
push eax
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004352e0
lea ecx, [ebp - 0x8c]
call fcn.00434fe0
push ebx
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 3
call fcn.00435000
push 4
lea ecx, [ebp - 0x50]
lea eax, [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], eax
call fcn.0042f550
mov edi, dword [ebp - 0x50]
xor esi, esi
cmp esi, edi
jge 0x433b70
push 4
lea edx, [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x4c]
call fcn.0042f550
push 4
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0042f550
push 4
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.0042f550
mov eax, dword [ebp - 0x5c]
sub eax, ebx
je 0x433b56
dec eax
je 0x433b3c
mov edx, dword [ebp - 0x58]
push edx
lea ecx, [ebp - 0x8c]
call fcn.0042e080
inc esi
jmp 0x433af2
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x50]
push eax
lea ecx, [ebp - 0x8c]
push ecx
mov ecx, dword [ebp - 0x44]
push edx
call fcn.00432d60
inc esi
jmp 0x433af2
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x50]
push eax
lea ecx, [ebp - 0x8c]
push ecx
mov ecx, dword [ebp - 0x44]
push edx
call fcn.004333e0
inc esi
jmp 0x433af2
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 2
call fcn.004351c0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00435270
mov al, 1
jmp 0x433a33