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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47994b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
mov eax, dword [0x49afa0]
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 0x43576a
call fcn.004013c0
cmp eax, ebx
jl 0x435851
mov eax, esi
mov dword [ebp - 0x48], 0xffffffff
mov dword [ebp - 0x6c], 0x47fb8c
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 0x4357a9
call fcn.004013c0
test eax, eax
jge 0x4357a9
jmp fcn.004315d0
cmp dword [ebp - 0x48], 0x52414e
je 0x4357bb
push 0xe
push str.Not_a_nar_file
jmp 0x4357f8
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 0x4357e8
call fcn.004013c0
test eax, eax
jge 0x4357e8
jmp fcn.004315d0
cmp dword [ebp - 0x64], 0x1000000
je 0x435818
push 0x10
push str.Version_mismatch
mov ecx, dword [ebp - 0x44]
add ecx, 0x18
call fcn.004083b0
mov eax, dword [esi]
test eax, eax
je 0x435851
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
jmp 0x435851
push 2
or ebx, 0xffffffff
push ebx
push 0xfffffffffffffffc
mov ecx, esi
mov dword [ebp - 0x48], ebx
call fcn.0042ff80
push 4
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x6c]
call fcn.004315f0
cmp dword [ebp - 0x48], 0x52414e
je 0x43586c
push str.Not_a_nar_file
mov ecx, dword [ebp - 0x44]
add ecx, 0x18
call fcn.00408960
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.004497f7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 2
push ebx
push 0xfffffffffffffff8
mov ecx, esi
call fcn.0042ff80
push 4
lea edx, [ebp - 0x54]
push edx
mov ecx, esi
mov dword [ebp - 0x54], ebx
call fcn.0042ff30
mov eax, dword [ebp - 0x54]
cmp eax, ebx
jne 0x435897
call fcn.00430090
push eax
jmp 0x435846
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.0042ff80
mov dword [ebp - 0x40], 0x47fb84
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x18], bl
mov eax, dword [0x498bf0]
push ebx
push eax
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00437100
lea ecx, [ebp - 0x8c]
call fcn.00436e00
push ebx
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 3
call fcn.00436e20
push 4
lea ecx, [ebp - 0x50]
lea eax, [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], eax
call fcn.004313e0
mov edi, dword [ebp - 0x50]
xor esi, esi
cmp esi, edi
jge 0x435990
push 4
lea edx, [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x4c]
call fcn.004313e0
push 4
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x4c]
call fcn.004313e0
push 4
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.004313e0
mov eax, dword [ebp - 0x5c]
sub eax, ebx
je 0x435976
dec eax
je 0x43595c
mov edx, dword [ebp - 0x58]
push edx
lea ecx, [ebp - 0x8c]
call fcn.0042ffc0
inc esi
jmp 0x435912
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.00434b80
inc esi
jmp 0x435912
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.00435200
inc esi
jmp 0x435912
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 2
call fcn.00436fe0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00437090
mov al, 1
jmp 0x435853