Function at 0x4176f0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
sub esp, 0x164
mov eax, dword [0x46dd54]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
mov ebx, dword [esp + 0x16c]
push ebp
mov ebp, dword [esp + 0x174]
push esi
push edi
push str.VFS:_add_file_start_n
mov esi, ecx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add dword [0x46fe88], 1
mov ecx, esi
call fcn.00416440
test ebp, ebp
jne 0x41773b
mov ebp, ebx
lea eax, [esi + 0x90]
push 1
push eax
push ebx
call fcn.00417a70
mov edi, eax
mov eax, dword [esi + 0x78]
add esp, 0xc
test eax, eax
je 0x417767
cmp dword [esi + 0x1b0], 0
jne 0x417767
push eax
mov ecx, esi
call fcn.00416940
test edi, edi
je 0x4177cc
lea eax, [esp + 0x2c]
push eax
push edi
call fcn.00417c10
add esp, 8
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x14]
lea edi, [esi + 0x19c]
push edx
mov ecx, edi
call fcn.00415680
mov eax, dword [edi + 4]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4177a3
cmp eax, edi
je 0x4177a8
call fcn.00437128
mov ecx, dword [esp + 0x28]
cmp dword [esp + 0x14], ecx
je 0x4177d6
push ebx
mov ecx, esi
call fcn.00416a70
push ebp
push ebx
mov ecx, esi
mov edi, eax
call fcn.004176f0
or eax, edi
jmp 0x417a4b
mov eax, 2
jmp 0x417a4b
push 0x45ac9c
push ebp
call fcn.00436feb
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4177f2
or eax, 0xffffffff
jmp 0x417a4b
push 2
push 0
push 0
push ebx
call fcn.0043afba
push ebx
call fcn.0043ac5f
push 0x50
lea edx, [esp + 0x54]
push 0
push edx
mov edi, eax
call fcn.00437da0
mov eax, dword [esi + 0x84]
xor ebp, ebp
add esp, 0x20
test eax, eax
mov dword [esp + 0x10], ebp
je 0x41783b
lea ecx, [esp + 0x3c]
push ecx
push edi
push eax
mov ecx, esi
call fcn.00414c00
mov ebp, eax
mov dword [esp + 0x10], eax
push 0x45ac94
mov ecx, esi
call fcn.00415550
push 0xe4
lea edx, [esp + 0x90]
push 0
push edx
call fcn.00437da0
push 0
lea eax, [esi + 0x90]
push eax
mov eax, dword [esp + 0x2c]
push eax
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], edi
call fcn.00417a70
add esp, 0x18
lea edx, [esp + 0xb0]
mov cl, byte [eax]
mov byte [edx], cl
add eax, 1
add edx, 1
test cl, cl
jne 0x417886
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
call fcn.00414c60
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 0x5c]
add esp, 8
test ebp, ebp
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ecx
jne 0x417947
push 2
push ebp
push ebp
push edx
call fcn.0043afba
mov eax, dword [esi + 0x5c]
push eax
call fcn.0043ac5f
add esp, 0x14
push 0x45ace4
mov ecx, esi
mov ebp, eax
call fcn.00415550
mov ecx, dword [esi + 0x5c]
push ecx
push 1
lea edx, [esp + 0x94]
push 0xe4
push edx
call fcn.004149c0
mov ecx, dword [esi + 0x5c]
mov eax, dword [esp + 0x9c]
push ecx
push 1
lea edx, [esp + 0x54]
push 0x50
push edx
mov dword [esp + 0x60], eax
call fcn.004149c0
push ebx
call fcn.0043a9e6
mov eax, dword [esi + 0x5c]
push eax
push edi
push ebx
call fcn.00414b80
add esp, 0x30
push 0x45ac94
mov ecx, esi
call fcn.00415550
push str.___append_the_file___n
jmp 0x4179b7
push 0
lea ecx, [ebp + 0x134]
push 0
push ecx
push edx
call fcn.0043afba
push ebx
call fcn.0043a9e6
mov eax, dword [esi + 0x5c]
push eax
push edi
push ebx
call fcn.00414b80
mov ecx, dword [esp + 0x30]
add esp, 0x20
push ecx
push edi
lea edx, [esp + 0x44]
push edx
mov ecx, esi
call fcn.00414e10
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x5c]
push 0
push 0
push eax
push ecx
call fcn.0043afba
mov edx, dword [esi + 0x5c]
push edx
push 1
lea eax, [esp + 0xa4]
push 0xe4
push eax
mov dword [esp + 0xb0], edi
call fcn.004149c0
add esp, 0x20
push str.___over_write_the_file___n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebp
lea ecx, [esp + 0x90]
push ecx
mov ecx, esi
call fcn.00417390
cmp eax, 0xffffffff
jne 0x4179d9
mov eax, 5
jmp 0x417a4b
push ebp
lea edx, [esp + 0x90]
push edx
mov ecx, esi
call fcn.00415320
lea eax, [esp + 0x2c]
push eax
lea ecx, [esi + 0x19c]
call fcn.004164e0
push 0
push 0
mov dword [eax], ebp
mov ecx, dword [esi + 0x5c]
push 0
push ecx
call fcn.0043afba
mov edi, dword [esi + 0x5c]
push edi
push 1
push 0xf0
add esi, 0x60
push esi
call fcn.00436e9a
push edi
call fcn.004387d0
push ebx
call fcn.00436d04
sub dword [0x46fe88], 1
push str.VFS:_add_file_finished_n
call fcn.0043b475
add esp, 0x2c
push str.VFS:_add_file_finished_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
mov ecx, dword [esp + 0x170]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00436c82
add esp, 0x164
ret 8