Function at 0x473708
Capabilities:
Check if file exists
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x283c
call fcn.0042f820
mov eax, dword [0x4c4290]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x800
lea eax, [ebp - 0x1028]
push esi
xor edi, edi
push edi
push eax
call fcn.00475710
push esi
lea eax, [ebp - 0x182c]
push edi
push eax
call fcn.00475710
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x1028]
push 0x3ff
push 0x400
push eax
call fcn.004739ac
xor eax, eax
mov word [ebp - 0x82a], ax
lea eax, [ebp - 0x1028]
push eax
lea eax, [ebp - 0x182c]
push str._zip__s_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
add esp, 0x3c
mov word [ebp - 0x102e], ax
lea eax, [ebp - 0x182c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esi, 0x208
lea eax, [ebp - 0x61c]
push esi
push edi
push eax
call fcn.00475710
push 0x4a9b5c
mov ebx, 0x104
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.0047eb5b
push str.WanNengZip
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push 0x4a9dcc
push eax
call fcn.0046f33e
push esi
lea eax, [ebp - 0x824]
push edi
push eax
call fcn.00475710
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00475710
add esp, 0x40
lea eax, [ebp - 0x20c]
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.00478a99
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x414]
push eax
call ebx
test eax, eax
je 0x47399b
lea eax, [ebp - 0x20c]
push eax
call fcn.00479233
lea ecx, [ebp - 0x20a]
lea eax, [ecx + eax*2]
push eax
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.0047eb5b
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._s_s.txt
push eax
call fcn.0046f33e
push edi
call fcn.00483ce8
mov dword [ebp - 0x283c], eax
lea eax, [ebp - 0x283c]
push eax
mov dword [ebp - 0x2838], edx
call fcn.00483c42
mov esi, eax
add esp, 0x28
test esi, esi
je 0x47399b
push 0x1000
lea eax, [ebp - 0x282c]
push edi
push eax
call fcn.00475710
lea eax, [ebp - 0x1028]
push eax
push dword [esi]
mov eax, dword [esi + 0x10]
push dword [esi + 4]
inc eax
push dword [esi + 8]
push dword [esi + 0xc]
push eax
mov eax, dword [esi + 0x14]
add eax, 0x76c
push eax
lea eax, [ebp - 0x282c]
push str.__d__02d__02d__02d:_02d:_02d_:_s
push eax
call fcn.004736ea
add esp, 0x30
lea eax, [ebp - 0x414]
push eax
call ebx
xor ebx, ebx
inc ebx
test eax, eax
lea eax, [ebp - 0x414]
push 0x49f440
push eax
cmovne edi, ebx
call fcn.0047e42a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x47399b
test edi, edi
jne 0x473941
push esi
push 2
lea eax, [ebp - 0x2834]
mov dword [ebp - 0x2834], 0xfeff
push ebx
push eax
call fcn.0047cb2c
add esp, 0x10
lea eax, [ebp - 0x282c]
push eax
call fcn.00479233
push esi
add eax, eax
push eax
lea eax, [ebp - 0x282c]
push ebx
push eax
call fcn.0047cb2c
push esi
push 2
lea eax, [ebp - 0x2830]
mov dword [ebp - 0x2830], 0xd
push ebx
push eax
call fcn.0047cb2c
push esi
push 2
lea eax, [ebp - 0x2830]
mov dword [ebp - 0x2830], 0xa
push ebx
push eax
call fcn.0047cb2c
push esi
call fcn.0047c6e6
add esp, 0x38
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e895
mov esp, ebp
pop ebp
ret