Function at 0x4046c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xa40
mov eax, dword [0x4463d0]
xor eax, esp
mov dword [esp + 0xa3c], eax
mov eax, dword [esp + 0xa44]
push ebx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0xa50]
xor ebx, ebx
push ebp
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xa50]
mov dword [esp + 0x3c], ecx
xor ecx, ecx
cmp dword [eax + 0x18], ebx
push esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x18], ebx
mov dword [esp + 0x3c], ebx
mov dword [0x449200], ebx
mov dword [0x449204], ebx
mov dword [esp + 0x24], ecx
jbe 0x404b8b
mov dword [esp + 0x1c], ebx
mov ebp, dword [eax + 0x1c]
add ebp, dword [esp + 0x1c]
cmp byte [ebp + 0x1a], bl
jne 0x4049e3
mov edx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x2c]
push edx
lea edx, [esp + 0x3c]
push edx
lea edx, [esp + 0x3c]
push edx
lea edx, [esp + 0x4c]
push edx
lea edx, [esp + 0x2c]
push edx
lea edx, [esp + 0x44]
push edx
push ecx
mov ecx, dword [esp + 0x60]
push ecx
call fcn.004017a0
add esp, 0x24
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x404a01
push 0x1fe
lea edx, [esp + 0x84e]
push ebx
push edx
mov word [esp + 0x854], bx
call fcn.00423fa0
add esp, 0xc
push 0x1fe
lea eax, [esp + 0x44e]
push ebx
push eax
mov word [esp + 0x454], bx
call fcn.00423fa0
add esp, 0xc
push 0x1fe
lea ecx, [esp + 0x64e]
push ebx
push ecx
mov word [esp + 0x654], bx
call fcn.00423fa0
mov ecx, dword [ebp + 0x14]
mov eax, ecx
add esp, 0xc
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x4047e1
push 0xff
lea edx, [esp + 0x84c]
push edx
sub eax, esi
push eax
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x848]
push eax
push ecx
push 0x43da08
push 0x200
lea edx, [esp + 0x458]
push 0x100
push edx
call fcn.0041f497
lea eax, [esp + 0x460]
push eax
push str._path____s__r_n
push 0x400
lea ecx, [esp + 0x6c]
push 0x200
push ecx
call fcn.0041f497
mov ecx, dword [0x449a68]
add esp, 0x2c
cmp ecx, ebx
je 0x40488a
lea eax, [esp + 0x48]
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x404861
sub eax, esi
sar eax, 1
push ecx
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x50]
push 1
push eax
call fcn.0041fe54
mov ecx, dword [0x449a68]
add esp, 0x10
push ecx
call fcn.004203e5
add esp, 4
cmp byte [ebp + 0x1a], bl
je 0x4048a2
lea ecx, [esp + 0x448]
push ecx
jmp 0x4048b8
lea edi, [esp + 0x648]
lea edx, [esp + 0x448]
call fcn.00404160
mov edx, edi
push edx
call fcn.004041d0
add esp, 4
cmp eax, ebx
je 0x404a64
lea eax, [esp + 0x448]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4048e8
lea ecx, [esp + 0x448]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
lea edx, [esp + 0x460]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x404aa5
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x34]
add ecx, eax
push esi
mov eax, edi
call fcn.00404030
add esp, 4
cmp eax, edi
jne 0x404ae6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x404b24
mov edx, dword [ebp + 8]
mov eax, dword [0x449200]
mov ecx, dword [0x449204]
add eax, edx
mov edx, dword [ebp + 0xc]
adc ecx, edx
push ecx
push eax
push str._m_nCompleteSize____d_r_n
push 0x400
mov dword [0x449200], eax
lea eax, [esp + 0x58]
push 0x200
push eax
mov dword [0x449204], ecx
call fcn.0041f497
mov edx, dword [0x449a68]
add esp, 0x18
cmp edx, ebx
je 0x4049b9
lea eax, [esp + 0x48]
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404990
sub eax, esi
push edx
sar eax, 1
lea ecx, [eax + eax]
push ecx
lea edx, [esp + 0x50]
push 1
push edx
call fcn.0041fe54
mov edx, dword [0x449a68]
add esp, 0x10
push edx
call fcn.004203e5
mov eax, dword [0x4491f4]
add esp, 4
cmp eax, ebx
je 0x4049df
mov ecx, dword [0x449200]
mov edx, dword [0x4491f8]
push ebx
push ecx
push edx
call eax
add esp, 0xc
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add dword [esp + 0x1c], 0x20
add ecx, 1
cmp ecx, dword [eax + 0x18]
mov dword [esp + 0x24], ecx
jb 0x404732
jmp 0x404b8b
push str._ExtractFile_:SzExtract_ERROR_r_n
push 0x400
lea eax, [esp + 0x50]
push 0x200
push eax
call fcn.0041f497
mov edx, dword [0x449a68]
add esp, 0x10
cmp edx, ebx
je 0x404a59
lea eax, [esp + 0x48]
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404a30
sub eax, esi
push edx
sar eax, 1
lea ecx, [eax + eax]
push ecx
lea edx, [esp + 0x50]
push 1
push edx
call fcn.0041fe54
mov edx, dword [0x449a68]
add esp, 0x10
push edx
call fcn.004203e5
jmp 0x404b88
push str._ExtractFile_:
push 0x400
lea eax, [esp + 0x50]
push 0x200
push eax
call fcn.0041f497
mov edx, dword [0x449a68]
add esp, 0x10
cmp edx, ebx
je 0x404b7a
lea eax, [esp + 0x48]
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404a95
jmp 0x404b5c
push 0x43da68
push 0x400
lea eax, [esp + 0x50]
push 0x200
push eax
call fcn.0041f497
mov edx, dword [0x449a68]
add esp, 0x10
cmp edx, ebx
je 0x404b7a
lea eax, [esp + 0x48]
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404ad6
jmp 0x404b5c
push str._ExtractFile_:can_not_write_output_file_r_n
push 0x400
lea eax, [esp + 0x50]
push 0x200
push eax
call fcn.0041f497
mov edx, dword [0x449a68]
add esp, 0x10
cmp edx, ebx
je 0x404b7a
lea eax, [esp + 0x48]
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404b17
jmp 0x404b5c
push str._ExtractFile_:can_not_close_output_file_r_n
push 0x400
lea eax, [esp + 0x50]
push 0x200
push eax
call fcn.0041f497
mov edx, dword [0x449a68]
add esp, 0x10
cmp edx, ebx
je 0x404b7a
lea eax, [esp + 0x48]
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404b51
sub eax, esi
push edx
sar eax, 1
lea ecx, [eax + eax]
push ecx
lea edx, [esp + 0x50]
push 1
push edx
call fcn.0041fe54
mov edx, dword [0x449a68]
add esp, 0x10
push edx
call fcn.004203e5
mov dword [esp + 0x18], 0x80004005
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 4]
push eax
call edx
mov ecx, dword [esp + 0xa50]
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041f488
add esp, 0xa40
ret