Function at 0x4176c0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x422528
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x103c
call fcn.0041fc50
mov eax, dword [0x4389b8]
xor eax, dword [esp + 0x1048]
push ebx
push ebp
push esi
mov dword [esp + 0x1044], eax
push edi
mov dword [esp + 0x14], ecx
mov ebx, dword [esp + 0x105c]
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push SysReAllocStringLen
push ebx
mov dword [esp + 0x1070], edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, edi
je 0x41789c
push ecx
lea eax, [ebx - 0x10]
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.004013a0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00415ae0
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], edi
xor eax, eax
add esp, 4
mov ecx, 8
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x42]
mov dword [esp + 0x24], edx
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
push 0x5c
push ebx
call dword [sym.imp.MSVCR70.dll__mbsrchr]
add esp, 8
test eax, eax
jne 0x417791
or eax, 0xffffffff
jmp 0x417793
sub eax, ebx
inc eax
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1064]
call fcn.00404d60
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 4]
push 9
push 8
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x40]
push ecx
push edx
push eax
call sub.zlib.dll_Ordinal_81
test eax, eax
jne 0x41786d
mov byte [esp + 0x48], al
mov ecx, 0x3ff
lea edi, [esp + 0x49]
rep stosd dword es:[edi], eax
push 0
lea ecx, [esp + 0x18]
push ecx
stosw word es:[edi], ax
push 0x1000
lea edx, [esp + 0x54]
push edx
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
mov dword [esp + 0x28], 0
call edi
test eax, eax
je 0x417855
jmp 0x417810
mov eax, dword [esp + 0x14]
test eax, eax
je 0x417855
mov ecx, dword [esi + 4]
push eax
lea eax, [esp + 0x4c]
push eax
push ecx
call sub.zlib.dll_Ordinal_82
test eax, eax
jne 0x41783d
cmp dword [esp + 0x14], 0x1000
jae 0x41783d
mov dword [esp + 0x10], 1
push 0
lea edx, [esp + 0x18]
push edx
push 0x1000
lea eax, [esp + 0x54]
push eax
push ebp
call edi
test eax, eax
jne 0x417810
mov ecx, dword [esi + 4]
push ecx
call sub.zlib.dll_Ordinal_83
mov ecx, dword [esp + 0x10]
neg eax
sbb eax, eax
inc eax
and ecx, eax
mov dword [esp + 0x10], ecx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x10]
and esi, eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x10], esi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41789c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov dword [esp + 0x1054], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4178c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x104c]
mov eax, dword [esp + 0x10]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1048]
xor ecx, dword [esp + 0x1058]
call fcn.0041fbeb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1048
ret 4