Function at 0x40f330
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4ac
mov eax, dword [0x443040]
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 0x40f36f
mov eax, 0x40000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fc87
mov esp, ebp
pop ebp
ret 0x10
cmp byte [ebx + 0x24], 0
je 0x40f38d
mov eax, 0x50000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fc87
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 0x40f3a0
mov cl, byte [ebp - 0x130]
test cl, cl
jne 0x40f3cf
mov eax, 0x10000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fc87
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x130]
cmp cl, 0x5c
jne 0x40f3dd
mov byte [eax], 0x2f
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40f3d5
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 0x40f400
sub ecx, edx
lea esi, [ebp - 0x130]
add esi, ecx
lea eax, [ebp - 0x130]
cmp esi, eax
jbe 0x40f430
nop dword [eax + eax]
cmp byte [esi], 0x2e
je 0x40f446
dec esi
lea eax, [ebp - 0x130]
cmp esi, eax
ja 0x40f420
lea eax, [ebp - 0x130]
cmp esi, eax
jne 0x40f446
cmp byte [esi], 0x2e
je 0x40f446
mov eax, edi
jmp 0x40f4e8
push 0x43f880
push esi
call fcn.0041cce0
add esp, 8
test eax, eax
je 0x40f4de
push str..zip
push esi
call fcn.0041cce0
add esp, 8
test eax, eax
je 0x40f4de
push str..zoo
push esi
call fcn.0041cce0
add esp, 8
test eax, eax
je 0x40f4de
push str..arc
push esi
call fcn.0041cce0
add esp, 8
test eax, eax
je 0x40f4de
push str..lzh
push esi
call fcn.0041cce0
add esp, 8
test eax, eax
je 0x40f4de
push str..arj
push esi
call fcn.0041cce0
add esp, 8
test eax, eax
je 0x40f4de
push 0x43f8ac
push esi
call fcn.0041cce0
add esp, 8
test eax, eax
je 0x40f4de
push str..tgz
push esi
call fcn.0041cce0
add esp, 8
test eax, eax
je 0x40f4de
mov eax, edi
jmp 0x40f4e8
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 0x40f543
mov esi, 0x10000
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fc87
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 0x40f57e
mov esi, 0x200
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fc87
mov esp, ebp
pop ebp
ret 0x10
push ecx
push eax
mov ecx, ebx
call fcn.0040eaf0
mov esi, eax
test esi, esi
je 0x40f5ae
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.0040fc87
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 0x40f5c5
lea ecx, [ebp - 0x350]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f5e3
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 0x40f66b
mov eax, dword [ebx + 0x50]
mov dword [ebp - 0x488], eax
test eax, eax
jns 0x40f675
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.0040db40
add esp, 4
test eax, eax
je 0x40f7b7
cmp byte [ebx + 0x60], 0
je 0x40f792
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x40f792
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.0040fc87
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 0x40f806
cmp byte [ebx + 0x60], 0
je 0x40f7e3
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x40f7e3
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.0040fc87
mov esp, ebp
pop ebp
ret 0x10
xor esi, esi
cmp edi, 8
jne 0x40f822
lea eax, [ebp - 0x498]
mov ecx, ebx
push eax
call fcn.0040ed40
mov esi, eax
jmp 0x40f8de
test edi, edi
jne 0x40f8de
push 0x4000
lea edi, [ebx + 0x74]
mov dword [ebp - 0x49c], esi
push edi
mov ecx, ebx
call fcn.0040ec60
mov esi, eax
test esi, esi
je 0x40f8cd
nop word [eax + eax]
cmp esi, 0xffffffff
je 0x40f8cd
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x40f883
mov edx, dword [ebx + 0x1c]
lea eax, [edx + esi]
cmp eax, dword [ebx + 0x20]
jb 0x40f870
mov dword [ebx + 0xc], 0x30000
jmp 0x40f8aa
push esi
lea eax, [edx + ecx]
push edi
push eax
call fcn.00412570
add esp, 0xc
add dword [ebx + 0x1c], esi
jmp 0x40f8b4
mov eax, dword [ebx]
test eax, eax
je 0x40f8a3
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 0x40f8ac
mov dword [ebx + 0xc], 0x1000000
xor eax, eax
cmp eax, esi
jne 0x40f9c4
add dword [ebp - 0x49c], esi
mov ecx, ebx
push 0x4000
push edi
call fcn.0040ec60
mov esi, eax
test esi, esi
jne 0x40f850
mov eax, dword [ebp - 0x49c]
xor esi, esi
mov dword [ebx + 0x70], eax
mov edi, dword [ebp - 0x4a4]
cmp byte [ebx + 0x60], 0
je 0x40f8f2
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x40f8f2
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 0x40f7a4
test esi, esi
jne 0x40f79f
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 0x40f9ce
mov word [ebp - 0x492], ax
mov ax, word [ebp - 0x494]
test al, 1
jne 0x40f96b
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.0040ea80
test al, al
je 0x40f9ac
push ebx
lea ecx, [ebp - 0x498]
call fcn.0040db40
add esp, 4
test eax, eax
jne 0x40f79f
push dword [ebx + 0x10]
mov ecx, ebx
call fcn.0040ea80
test al, al
jne 0x40fa15
mov eax, 0x2000000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fc87
mov esp, ebp
pop ebp
ret 0x10
mov esi, 0x60000
jmp 0x40f8d8
cmp word [ebp - 0x492], ax
jne 0x40fab9
test edi, edi
jne 0x40f9ec
cmp byte [ebp - 0x49d], 0
je 0x40fab9
push ebx
lea ecx, [ebp - 0x498]
call fcn.0040de30
add esp, 4
test eax, eax
jne 0x40f79f
mov ax, word [ebp - 0x46c]
add dword [ebx + 0x10], 0x10
mov word [ebp - 0x494], ax
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x40f7a4
push dword [ebp - 0x478]
call fcn.004100eb
add esp, 4
mov esi, eax
push dword [ebp - 0x478]
push dword [ebp - 0x358]
push esi
call fcn.00412570
add esp, 0xc
mov dword [ebp - 0x358], esi
push 0x360
call fcn.00410117
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 0x40fa88
mov dword [ebx + 0x28], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fc87
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ecx + 0x35c]
test eax, eax
je 0x40fa9e
mov ecx, eax
mov eax, dword [ecx + 0x35c]
test eax, eax
jne 0x40fa92
mov dword [ecx + 0x35c], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fc87
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.0040fc87
mov esp, ebp
pop ebp
ret 0x10