Function at 0x40c2a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4ac
mov eax, dword [0x43d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [ebp - 0x49c], eax
push esi
push edi
cmp dword [ebx + 0xc], 0
je 0x40c2df
mov eax, 0x40000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cbf7
mov esp, ebp
pop ebp
ret 0x10
cmp byte [ebx + 0x24], 0
je 0x40c2fd
mov eax, 0x50000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cbf7
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x130]
sub edx, ecx
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x40c310
mov cl, byte [ebp - 0x130]
test cl, cl
jne 0x40c33f
mov eax, 0x10000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cbf7
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x130]
cmp cl, 0x5c
jne 0x40c34d
mov byte [eax], 0x2f
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40c345
mov edi, 8
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x4a4], edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c370
sub ecx, edx
lea esi, [ebp - 0x130]
add esi, ecx
lea eax, [ebp - 0x130]
cmp esi, eax
jbe 0x40c3a0
nop dword [eax + eax]
cmp byte [esi], 0x2e
je 0x40c3b6
dec esi
lea eax, [ebp - 0x130]
cmp esi, eax
ja 0x40c390
lea eax, [ebp - 0x130]
cmp esi, eax
jne 0x40c3b6
cmp byte [esi], 0x2e
je 0x40c3b6
mov eax, edi
jmp 0x40c458
push 0x43a118
push esi
call fcn.004176ed
add esp, 8
test eax, eax
je 0x40c44e
push str..zip
push esi
call fcn.004176ed
add esp, 8
test eax, eax
je 0x40c44e
push str..zoo
push esi
call fcn.004176ed
add esp, 8
test eax, eax
je 0x40c44e
push str..arc
push esi
call fcn.004176ed
add esp, 8
test eax, eax
je 0x40c44e
push str..lzh
push esi
call fcn.004176ed
add esp, 8
test eax, eax
je 0x40c44e
push str..arj
push esi
call fcn.004176ed
add esp, 8
test eax, eax
je 0x40c44e
push 0x43a144
push esi
call fcn.004176ed
add esp, 8
test eax, eax
je 0x40c44e
push str..tgz
push esi
call fcn.004176ed
add esp, 8
test eax, eax
je 0x40c44e
mov eax, edi
jmp 0x40c458
xor edi, edi
xor eax, eax
mov dword [ebp - 0x4a4], edi
movzx eax, ax
mov dword [ebp - 0x4a8], eax
mov eax, dword [ebp - 0x49c]
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x64], 0
mov byte [ebx + 0x60], 0
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x54], 0
test eax, eax
jne 0x40c4b3
mov esi, 0x10000
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cbf7
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x49c], eax
cmp eax, 0xffffffff
jne 0x40c4ee
mov esi, 0x200
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cbf7
mov esp, ebp
pop ebp
ret 0x10
push ecx
push eax
mov ecx, ebx
call fcn.0040ba60
mov esi, eax
test esi, esi
je 0x40c51e
push dword [ebp - 0x49c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cbf7
mov esp, ebp
pop ebp
ret 0x10
mov byte [ebx + 0x60], 1
xor ecx, ecx
mov dword [ebp - 0x13c], 0
mov byte [ebp - 0x460], 0
mov al, byte [ebp + ecx - 0x130]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x351], al
test al, al
jne 0x40c535
lea ecx, [ebp - 0x350]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c553
mov byte [ebp - 0x24c], al
sub ecx, edx
mov eax, dword [ebx + 0x48]
mov dword [ebp - 0x490], eax
mov eax, 8
mov dword [ebp - 0x480], ecx
mov dword [ebp - 0x354], 0
mov dword [ebp - 0x474], 0
mov dword [ebp - 0x148], 1
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x46e], 0x80000
mov dword [ebp - 0x498], 0x140b17
mov dword [ebp - 0x48c], 0
mov word [ebp - 0x494], ax
mov word [ebp - 0x492], di
test edi, edi
jne 0x40c5db
mov eax, dword [ebx + 0x50]
mov dword [ebp - 0x488], eax
test eax, eax
jns 0x40c5e5
mov dword [ebp - 0x488], 0
mov eax, dword [ebx + 0x50]
mov dword [ebp - 0x484], eax
xor eax, eax
mov word [ebp - 0x470], ax
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0x468], eax
mov eax, dword [ebx + 8]
add eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0x3c]
mov dword [ebp - 0x464], eax
lea eax, [ebp - 0x18]
mov ecx, dword [ebx + 0x38]
mov dword [ebp - 0x35c], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x358], eax
mov al, byte [ebx + 0x38]
mov byte [ebp - 0x13], al
mov eax, edx
shrd ecx, eax, 8
mov eax, edx
mov dword [ebp - 0x18], 0xd5455
mov byte [ebp - 0x12], cl
mov ecx, dword [ebx + 0x38]
shrd ecx, eax, 0x10
mov eax, dword [ebx + 0x38]
shrd eax, edx, 0x18
mov edx, dword [ebx + 0x34]
mov dword [ebp - 0x49c], eax
mov byte [ebp - 0x10], al
mov al, byte [ebx + 0x30]
mov byte [ebp - 0xf], al
mov eax, edx
mov byte [ebp - 0x11], cl
mov ecx, dword [ebx + 0x30]
shrd ecx, eax, 8
mov eax, edx
mov byte [ebp - 0x14], 7
mov byte [ebp - 0xe], cl
mov ecx, dword [ebx + 0x30]
shrd ecx, eax, 0x10
mov eax, dword [ebx + 0x30]
movq xmm0, qword [ebp - 0x18]
shrd eax, edx, 0x18
mov edx, dword [ebx + 0x44]
mov byte [ebp - 0xc], al
mov al, byte [ebx + 0x40]
mov byte [ebp - 0xb], al
mov eax, edx
mov byte [ebp - 0xd], cl
mov ecx, dword [ebx + 0x40]
shrd ecx, eax, 8
mov eax, edx
movq qword [ebp - 0x24], xmm0
mov byte [ebp - 0xa], cl
mov ecx, dword [ebx + 0x40]
shrd ecx, eax, 0x10
mov eax, dword [ebx + 0x40]
shrd eax, edx, 0x18
mov byte [ebp - 9], cl
lea ecx, [ebp - 0x498]
mov byte [ebp - 8], al
mov eax, dword [ebp - 0x49c]
push ebx
mov dword [ebp - 0x47c], 0x11
mov dword [ebp - 0x478], 9
mov byte [ebp - 0x1c], al
mov byte [ebp - 0x22], 5
call fcn.0040aab0
add esp, 4
test eax, eax
je 0x40c727
cmp byte [ebx + 0x60], 0
je 0x40c702
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x40c702
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0x54]
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x50], eax
mov eax, 0x400
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cbf7
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x47c]
add eax, 0x1e
add eax, dword [ebp - 0x480]
add dword [ebx + 0x10], eax
cmp dword [ebx + 0xc], 0
je 0x40c776
cmp byte [ebx + 0x60], 0
je 0x40c753
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x40c753
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx + 0x54]
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x50], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cbf7
mov esp, ebp
pop ebp
ret 0x10
xor esi, esi
cmp edi, 8
jne 0x40c792
lea eax, [ebp - 0x498]
mov ecx, ebx
push eax
call fcn.0040bcb0
mov esi, eax
jmp 0x40c84e
test edi, edi
jne 0x40c84e
push 0x4000
lea edi, [ebx + 0x74]
mov dword [ebp - 0x49c], esi
push edi
mov ecx, ebx
call fcn.0040bbd0
mov esi, eax
test esi, esi
je 0x40c83d
nop word [eax + eax]
cmp esi, 0xffffffff
je 0x40c83d
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x40c7f3
mov edx, dword [ebx + 0x1c]
lea eax, [edx + esi]
cmp eax, dword [ebx + 0x20]
jb 0x40c7e0
mov dword [ebx + 0xc], 0x30000
jmp 0x40c81a
push esi
lea eax, [edx + ecx]
push edi
push eax
call fcn.0040fdd0
add esp, 0xc
add dword [ebx + 0x1c], esi
jmp 0x40c824
mov eax, dword [ebx]
test eax, eax
je 0x40c813
push 0
lea ecx, [ebp - 0x134]
push ecx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x134]
jmp 0x40c81c
mov dword [ebx + 0xc], 0x1000000
xor eax, eax
cmp eax, esi
jne 0x40c934
add dword [ebp - 0x49c], esi
mov ecx, ebx
push 0x4000
push edi
call fcn.0040bbd0
mov esi, eax
test esi, esi
jne 0x40c7c0
mov eax, dword [ebp - 0x49c]
xor esi, esi
mov dword [ebx + 0x70], eax
mov edi, dword [ebp - 0x4a4]
cmp byte [ebx + 0x60], 0
je 0x40c862
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x40c862
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx + 0x70]
add dword [ebx + 0x10], ecx
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x50], edx
test eax, eax
jne 0x40c714
test esi, esi
jne 0x40c70f
cmp dword [ebp - 0x488], ecx
mov eax, dword [ebx + 0x58]
sete byte [ebp - 0x49d]
mov dword [ebp - 0x48c], eax
cmp byte [ebx + 0x14], 0
mov eax, dword [ebp - 0x4a8]
mov dword [ebp - 0x488], ecx
mov dword [ebp - 0x484], edx
je 0x40c93e
mov word [ebp - 0x492], ax
mov ax, word [ebp - 0x494]
test al, 1
jne 0x40c8db
mov ecx, 0xfff7
and ax, cx
mov word [ebp - 0x494], ax
mov word [ebp - 0x46c], ax
mov ecx, ebx
mov eax, dword [ebp - 0x464]
sub eax, dword [ebx + 8]
push eax
call fcn.0040b9f0
test al, al
je 0x40c91c
push ebx
lea ecx, [ebp - 0x498]
call fcn.0040aab0
add esp, 4
test eax, eax
jne 0x40c70f
push dword [ebx + 0x10]
mov ecx, ebx
call fcn.0040b9f0
test al, al
jne 0x40c985
mov eax, 0x2000000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cbf7
mov esp, ebp
pop ebp
ret 0x10
mov esi, 0x60000
jmp 0x40c848
cmp word [ebp - 0x492], ax
jne 0x40ca29
test edi, edi
jne 0x40c95c
cmp byte [ebp - 0x49d], 0
je 0x40ca29
push ebx
lea ecx, [ebp - 0x498]
call fcn.0040ada0
add esp, 4
test eax, eax
jne 0x40c70f
mov ax, word [ebp - 0x46c]
add dword [ebx + 0x10], 0x10
mov word [ebp - 0x494], ax
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x40c714
push dword [ebp - 0x478]
call fcn.0040d05b
add esp, 4
mov esi, eax
push dword [ebp - 0x478]
push dword [ebp - 0x358]
push esi
call fcn.0040fdd0
add esp, 0xc
mov dword [ebp - 0x358], esi
push 0x360
call fcn.0040d087
mov edx, eax
lea esi, [ebp - 0x498]
mov ecx, 0xd8
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x28]
add esp, 4
test ecx, ecx
jne 0x40c9f8
mov dword [ebx + 0x28], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cbf7
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ecx + 0x35c]
test eax, eax
je 0x40ca0e
mov ecx, eax
mov eax, dword [ecx + 0x35c]
test eax, eax
jne 0x40ca02
mov dword [ecx + 0x35c], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cbf7
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
mov eax, 0x4000000
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040cbf7
mov esp, ebp
pop ebp
ret 0x10