Function at 0x100031e7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7f8
mov eax, dword [0x101f6410]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 0x104
mov esi, ecx
lea ecx, [ebp - 0x314]
push ecx
push 0xffffffffffffffff
push dword [eax]
mov dword [ebp - 0x7cc], esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x314]
push 0x101c7594
push eax
call fcn.1013c5de
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x7b8], eax
jne 0x10003248
xor al, al
jmp 0x10003521
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov dword [ebp - 0x7c0], eax
mov dword [ebp - 0x7c4], esi
mov dword [ebp - 0x7d4], esi
mov eax, dword [esi + 4]
lea edi, [ebp - 0x7d4]
lea esi, [ebp - 0x7c4]
mov dword [ebp - 0x7d0], eax
call fcn.100035a9
test al, al
jne 0x100034d8
call fcn.10003544
mov eax, dword [eax]
push ebx
push eax
call fcn.1014c899
test eax, eax
pop ecx
pop ecx
jne 0x100034c2
call fcn.10003544
mov eax, dword [eax]
lea ecx, [ebp - 0x7f8]
push ecx
push eax
call fcn.10148cc9
test eax, eax
pop ecx
pop ecx
jne 0x100034c2
mov edi, 0x2a0
push edi
lea eax, [ebp - 0x7b4]
push ebx
push eax
call fcn.10146c80
add esp, 0xc
call fcn.10003544
mov eax, dword [eax]
push 0x5c
push eax
call fcn.10148fd7
cmp eax, ebx
pop ecx
pop ecx
jne 0x100032eb
call fcn.10003544
mov eax, dword [eax]
jmp 0x100032ed
inc eax
inc eax
push ebx
push ebx
push 0x104
lea ecx, [ebp - 0x7b4]
push ecx
push 0xffffffffffffffff
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push str.0100666
lea eax, [ebp - 0x6b0]
push 8
push eax
call fcn.1014bf8a
mov esi, str.0000000
push esi
lea eax, [ebp - 0x6a8]
push 8
push eax
call fcn.1014bf8a
push esi
lea eax, [ebp - 0x6a0]
push 8
push eax
call fcn.1014bf8a
push dword [ebp - 0x7e4]
mov esi, str._011o
lea eax, [ebp - 0x698]
push esi
push eax
call fcn.100035c4
push dword [ebp - 0x7dc]
lea eax, [ebp - 0x68c]
push esi
push eax
call fcn.100035c4
push str.ustar
lea eax, [ebp - 0x613]
push 6
push eax
mov byte [ebp - 0x678], 0x30
call fcn.1014bf8a
add esp, 0x48
push 8
lea eax, [ebp - 0x680]
push 0x20
push eax
mov byte [ebp - 0x60d], 0x30
mov byte [ebp - 0x60c], 0x30
call fcn.10146c80
add esp, 0xc
xor ecx, ecx
lea eax, [ebp - 0x7b4]
mov edx, edi
movzx esi, byte [eax]
add ecx, esi
inc eax
dec edx
jne 0x100033af
push ecx
lea eax, [ebp - 0x680]
push str._06o
push eax
call fcn.100035dc
push edi
lea eax, [ebp - 0x7b4]
push eax
push dword [ebp - 0x7b8]
call fcn.1013cd9c
add esp, 0x18
lea esi, [ebp - 0x7c4]
call fcn.10003544
mov eax, dword [eax]
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x7c8], eax
je 0x10003485
mov esi, 0x200
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.10146c80
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
jmp 0x10003451
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x7b8]
call fcn.1013cd9c
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.10146c80
add esp, 0x18
push ebx
lea eax, [ebp - 0x7bc]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x7c8]
mov dword [ebp - 0x7bc], ebx
call edi
cmp dword [ebp - 0x7bc], ebx
jne 0x1000342d
push dword [ebp - 0x7c8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100034c2
xor edi, edi
cmp dword [ebp - 0x7e4], ebx
jbe 0x100034c2
mov esi, 0x200
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.10146c80
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x7b8]
call fcn.1013cd9c
add edi, esi
add esp, 0x18
cmp edi, dword [ebp - 0x7e4]
jb 0x1000348f
lea esi, [ebp - 0x7c4]
call fcn.10003585
mov esi, dword [ebp - 0x7cc]
jmp 0x1000325f
mov esi, 0x200
push esi
lea eax, [ebp - 0x514]
push ebx
push eax
call fcn.10146c80
push esi
lea eax, [ebp - 0x514]
push eax
push dword [ebp - 0x7b8]
call fcn.1013cd9c
push esi
lea eax, [ebp - 0x514]
push eax
push dword [ebp - 0x7b8]
call fcn.1013cd9c
push dword [ebp - 0x7b8]
call fcn.1013d1fe
add esp, 0x28
mov al, 1
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10145d71
leave
ret