Function at 0x40aa60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x750
mov eax, dword [0x42e0b0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax]
push ebx
push esi
push edi
push 0
push 0
push 0x104
mov edi, ecx
lea ecx, [ebp - 0x314]
push ecx
push 0xffffffffffffffff
push edx
push 0
push 0
mov dword [ebp - 0x74c], edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x314]
push 0x42b838
push eax
call fcn.0041cfc0
mov esi, eax
add esp, 8
mov dword [ebp - 0x748], esi
test esi, esi
jne 0x40aad3
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040b2c9
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
mov edi, dword [eax]
mov dword [ebp - 0x744], edi
cmp edi, eax
je 0x40adc2
jmp 0x40aaf6
mov edi, dword [ebp - 0x744]
mov eax, dword [edi + 8]
push 0
push eax
mov bl, 0x30
call fcn.0040d27c
add esp, 8
test eax, eax
jne 0x40adac
mov eax, dword [edi + 8]
lea ecx, [ebp - 0x538]
push ecx
push eax
call fcn.0040d4b9
add esp, 8
test eax, eax
jne 0x40adac
push 0x200
push eax
lea edx, [ebp - 0x73c]
push edx
call fcn.0040daf0
mov eax, dword [edi + 8]
push 0x5c
push eax
call fcn.0040b412
add esp, 0x14
test eax, eax
jne 0x40ab52
mov eax, dword [edi + 8]
jmp 0x40ab55
add eax, 2
push 0
push 0
push 0x64
lea ecx, [ebp - 0x73c]
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push str.0100666
lea edx, [ebp - 0x6d8]
push 8
push edx
call fcn.0040d8ea
push str.0000000
lea eax, [ebp - 0x6d0]
push 8
push eax
call fcn.0040d8ea
push str.0000000
lea ecx, [ebp - 0x6c8]
push 8
push ecx
call fcn.0040d8ea
mov edx, dword [ebp - 0x524]
push edx
push str._011o
lea edx, [ebp - 0x6c0]
call fcn.0040ae20
mov eax, dword [ebp - 0x51c]
push eax
push str._011o
lea edx, [ebp - 0x6b4]
call fcn.0040ae20
push str.ustar
lea ecx, [ebp - 0x63b]
push 6
push ecx
mov byte [ebp - 0x6a0], bl
call fcn.0040d8ea
mov eax, 0x20202020
add esp, 0x40
mov dword [ebp - 0x6a8], eax
mov dword [ebp - 0x6a4], eax
xor ecx, ecx
xor edi, edi
xor esi, esi
mov byte [ebp - 0x635], bl
mov byte [ebp - 0x634], bl
xor edx, edx
lea eax, [ebp - 0x73a]
mov dword [ebp - 0x740], 0x80
jmp 0x40ac30
movzx ebx, byte [eax - 2]
add ecx, ebx
movzx ebx, byte [eax - 1]
add edx, ebx
movzx ebx, byte [eax]
add esi, ebx
movzx ebx, byte [eax + 1]
add edi, ebx
add eax, 4
dec dword [ebp - 0x740]
jne 0x40ac30
add edx, esi
add edx, edi
add ecx, edx
push ecx
push str._06o
lea edx, [ebp - 0x6a8]
call fcn.0040ae40
mov esi, dword [ebp - 0x748]
push 0x200
lea edx, [ebp - 0x73c]
push edx
push esi
call fcn.0041d220
mov eax, dword [ebp - 0x744]
mov eax, dword [eax + 8]
add esp, 0x14
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40ad5c
push 0x200
lea ecx, [ebp - 0x20c]
push 0
push ecx
call fcn.0040daf0
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
push 0
lea edx, [ebp - 0x740]
push edx
push 0x200
lea eax, [ebp - 0x20c]
push eax
push ebx
mov dword [ebp - 0x740], 0
call edi
cmp dword [ebp - 0x740], 0
je 0x40ad53
jmp 0x40ad00
push 0x200
lea ecx, [ebp - 0x20c]
push ecx
push esi
call fcn.0041d220
push 0x200
lea edx, [ebp - 0x20c]
push 0
push edx
call fcn.0040daf0
add esp, 0x18
push 0
lea eax, [ebp - 0x740]
push eax
push 0x200
lea ecx, [ebp - 0x20c]
push ecx
push ebx
mov dword [ebp - 0x740], 0
call edi
cmp dword [ebp - 0x740], 0
jne 0x40ad00
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40ada6
xor ebx, ebx
cmp dword [ebp - 0x524], ebx
jbe 0x40ada6
jmp 0x40ad70
push 0x200
lea edx, [ebp - 0x20c]
push 0
push edx
call fcn.0040daf0
push 0x200
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.0041d220
add ebx, 0x200
add esp, 0x18
cmp ebx, dword [ebp - 0x524]
jb 0x40ad70
mov edi, dword [ebp - 0x744]
mov edi, dword [edi]
mov ecx, dword [ebp - 0x74c]
mov dword [ebp - 0x744], edi
cmp edi, dword [ecx]
jne 0x40aaf0
push 0x200
lea edx, [ebp - 0x514]
push 0
push edx
call fcn.0040daf0
push 0x200
lea eax, [ebp - 0x514]
push eax
push esi
call fcn.0041d220
push 0x200
lea ecx, [ebp - 0x514]
push ecx
push esi
call fcn.0041d220
push esi
call fcn.0041d3b0
mov ecx, dword [ebp - 8]
add esp, 0x28
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0040b2c9
mov esp, ebp
pop ebp
ret