Function at 0x47f000
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4af88c
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x4dffd0]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dffd0]
xor eax, esp
push eax
lea eax, [esp + 0x19c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1ac]
mov ecx, dword [esp + 0x1b8]
mov esi, dword [esp + 0x1b0]
mov edi, dword [esp + 0x1b4]
mov dword [esp + 0x14], ecx
xor ebx, ebx
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebx
call fcn.00406990
push esi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1a8], ebx
call fcn.00406990
mov esi, dword [edi + 8]
cmp dword [edi + 4], esi
mov ebp, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov byte [esp + 0x1a4], 1
jbe 0x47f0a0
call ebp
mov edi, dword [edi + 4]
mov ecx, dword [esp + 0x20]
cmp edi, dword [ecx + 8]
jbe 0x47f0b2
call ebp
mov ecx, dword [esp + 0x20]
push esi
push ecx
push edi
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.0047eb50
mov esi, dword [esp + 0x2c]
cmp esi, ebx
je 0x47f494
cmp dword [esp + 0x34], ebx
je 0x47f494
mov eax, dword [esp + 0x30]
push eax
call fcn.0047e520
mov edi, eax
add esp, 4
cmp edi, ebx
mov dword [esp + 0x1c], edi
jne 0x47f18f
mov ecx, dword [esp + 0x14]
push esi
push str._zlibHelper__Cannot_Open_File__s.
push ecx
call fcn.00405e90
add esp, 0xc
cmp edi, ebx
je 0x47f111
push edi
call fcn.0047e540
add esp, 4
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x1a4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47f138
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov dword [esp + 0x1a4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47f163
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x19c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.0048e5b2
add esp, 0x194
ret
push edi
call fcn.0047da40
add esp, 4
test eax, eax
je 0x47f1ac
mov edx, dword [esp + 0x14]
push esi
push str._zlibHelper__unzGoToFirstFile_Error_:_s.
push edx
jmp 0x47f0fc
mov eax, dword [0x500de4]
mov edx, dword [eax + 0xc]
mov ecx, 0x500de4
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
push 0x103
lea eax, [esp + 0x99]
push ebx
push eax
mov byte [esp + 0x1b0], 2
mov byte [esp + 0xa0], bl
call sub.MSVCR80.dll_memset
push ebx
push ebx
push ebx
push ebx
push 0x104
lea ecx, [esp + 0xb4]
push ecx
lea edx, [esp + 0x68]
push edx
push edi
call fcn.0047d960
add esp, 0x2c
test eax, eax
jne 0x47f3df
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x2c]
call fcn.00406cc0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
push ecx
push edx
lea eax, [esp + 0x20]
push 0x4b974c
push eax
mov byte [esp + 0x1b4], 3
call fcn.00405e90
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x1a4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47f268
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call fcn.0047e7c0
add esp, 4
test eax, eax
jne 0x47f423
cmp dword [esp + 0x1bc], ebx
mov ebp, dword [esp + 0x18]
jne 0x47f295
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47f295
xor esi, esi
jmp 0x47f29a
mov esi, 1
cmp dword [ebp - 0xc], ebx
jl 0x47f2cb
push 0x4bd8a4
push ebp
call dword [sym.imp.MSVCR80.dll_wcsstr]
add esp, 8
cmp eax, ebx
je 0x47f2cb
sub eax, ebp
sar eax, 1
cmp eax, 0xffffffff
je 0x47f2cb
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
neg esi
sbb esi, esi
add esi, 1
cmp esi, ebx
je 0x47f3a1
push 0x4000
mov dword [esp + 0x40], ebx
call dword [sym.imp.MSVCR80.dll_malloc]
push 0x4000
mov edi, eax
push ebx
push edi
call sub.MSVCR80.dll_memset
add esp, 0x10
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x47f329
push ebp
call fcn.0047e970
add esp, 4
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.0047ef70
cmp esi, ebx
je 0x47f377
mov edx, dword [esp + 0x1c]
push 0x4000
push edi
push edx
call fcn.0047ddb0
add esp, 0xc
cmp eax, ebx
jle 0x47f363
push ebx
lea ecx, [esp + 0x40]
push ecx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x47f337
je 0x47f377
mov edx, dword [esp + 0x14]
push str._zlibHelper__Error_in_read
push edx
call fcn.00405e90
add esp, 8
mov eax, dword [esp + 0x1c]
push eax
call fcn.0047e040
add esp, 4
cmp esi, ebx
je 0x47f38f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x47f39d
push edi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov edi, dword [esp + 0x1c]
push edi
call fcn.0047dab0
add esp, 4
cmp eax, ebx
jne 0x47f453
lea eax, [ebp - 0x10]
mov byte [esp + 0x1a4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47f1ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x47f1ac
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
push ecx
push str._zlibHelper__GetItemInfo_Error_:_s.
push edx
call fcn.00405e90
add esp, 0xc
lea eax, [esi - 0x10]
mov byte [esp + 0x1a4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47f104
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x47f104
mov ecx, dword [esp + 0x14]
push str._zlibHelper__Open_Current_zip_item_Error.
push ecx
call fcn.00405e90
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 8
mov byte [esp + 0x1a4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x47f40e
cmp eax, 0xffffff9c
jne 0x47f465
mov dword [esp + 0x24], 1
lea eax, [ebp - 0x10]
jmp 0x47f3f9
mov ecx, dword [esp + 0x14]
push str._zlibHelper__Find_Next_Item_Error.
push ecx
call fcn.00405e90
lea eax, [ebp - 0x10]
add esp, 8
mov byte [esp + 0x1a4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x47f40e
mov ecx, dword [esp + 0x14]
push str._zlibHelper__Param_has_NULL_param.
push ecx
call fcn.00405e90
add esp, 8
jmp 0x47f111