Function at 0x40e960
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4ac
mov eax, dword [0x442040]
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 0x40e99f
mov eax, 0x40000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f2b7
mov esp, ebp
pop ebp
ret 0x10
cmp byte [ebx + 0x24], 0
je 0x40e9bd
mov eax, 0x50000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f2b7
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 0x40e9d0
mov cl, byte [ebp - 0x130]
test cl, cl
jne 0x40e9ff
mov eax, 0x10000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f2b7
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x130]
cmp cl, 0x5c
jne 0x40ea0d
mov byte [eax], 0x2f
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40ea05
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 0x40ea30
sub ecx, edx
lea esi, [ebp - 0x130]
add esi, ecx
lea eax, [ebp - 0x130]
cmp esi, eax
jbe 0x40ea60
nop dword [eax + eax]
cmp byte [esi], 0x2e
je 0x40ea76
dec esi
lea eax, [ebp - 0x130]
cmp esi, eax
ja 0x40ea50
lea eax, [ebp - 0x130]
cmp esi, eax
jne 0x40ea76
cmp byte [esi], 0x2e
je 0x40ea76
mov eax, edi
jmp 0x40eb18
push 0x43e5f8
push esi
call fcn.0041c310
add esp, 8
test eax, eax
je 0x40eb0e
push str..zip
push esi
call fcn.0041c310
add esp, 8
test eax, eax
je 0x40eb0e
push str..zoo
push esi
call fcn.0041c310
add esp, 8
test eax, eax
je 0x40eb0e
push str..arc
push esi
call fcn.0041c310
add esp, 8
test eax, eax
je 0x40eb0e
push str..lzh
push esi
call fcn.0041c310
add esp, 8
test eax, eax
je 0x40eb0e
push str..arj
push esi
call fcn.0041c310
add esp, 8
test eax, eax
je 0x40eb0e
push 0x43e624
push esi
call fcn.0041c310
add esp, 8
test eax, eax
je 0x40eb0e
push str..tgz
push esi
call fcn.0041c310
add esp, 8
test eax, eax
je 0x40eb0e
mov eax, edi
jmp 0x40eb18
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 0x40eb73
mov esi, 0x10000
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f2b7
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 0x40ebae
mov esi, 0x200
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f2b7
mov esp, ebp
pop ebp
ret 0x10
push ecx
push eax
mov ecx, ebx
call fcn.0040e120
mov esi, eax
test esi, esi
je 0x40ebde
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.0040f2b7
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 0x40ebf5
lea ecx, [ebp - 0x350]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ec13
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 0x40ec9b
mov eax, dword [ebx + 0x50]
mov dword [ebp - 0x488], eax
test eax, eax
jns 0x40eca5
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.0040d170
add esp, 4
test eax, eax
je 0x40ede7
cmp byte [ebx + 0x60], 0
je 0x40edc2
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x40edc2
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.0040f2b7
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 0x40ee36
cmp byte [ebx + 0x60], 0
je 0x40ee13
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x40ee13
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.0040f2b7
mov esp, ebp
pop ebp
ret 0x10
xor esi, esi
cmp edi, 8
jne 0x40ee52
lea eax, [ebp - 0x498]
mov ecx, ebx
push eax
call fcn.0040e370
mov esi, eax
jmp 0x40ef0e
test edi, edi
jne 0x40ef0e
push 0x4000
lea edi, [ebx + 0x74]
mov dword [ebp - 0x49c], esi
push edi
mov ecx, ebx
call fcn.0040e290
mov esi, eax
test esi, esi
je 0x40eefd
nop word [eax + eax]
cmp esi, 0xffffffff
je 0x40eefd
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x40eeb3
mov edx, dword [ebx + 0x1c]
lea eax, [edx + esi]
cmp eax, dword [ebx + 0x20]
jb 0x40eea0
mov dword [ebx + 0xc], 0x30000
jmp 0x40eeda
push esi
lea eax, [edx + ecx]
push edi
push eax
call fcn.00411ba0
add esp, 0xc
add dword [ebx + 0x1c], esi
jmp 0x40eee4
mov eax, dword [ebx]
test eax, eax
je 0x40eed3
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 0x40eedc
mov dword [ebx + 0xc], 0x1000000
xor eax, eax
cmp eax, esi
jne 0x40eff4
add dword [ebp - 0x49c], esi
mov ecx, ebx
push 0x4000
push edi
call fcn.0040e290
mov esi, eax
test esi, esi
jne 0x40ee80
mov eax, dword [ebp - 0x49c]
xor esi, esi
mov dword [ebx + 0x70], eax
mov edi, dword [ebp - 0x4a4]
cmp byte [ebx + 0x60], 0
je 0x40ef22
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x40ef22
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 0x40edd4
test esi, esi
jne 0x40edcf
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 0x40effe
mov word [ebp - 0x492], ax
mov ax, word [ebp - 0x494]
test al, 1
jne 0x40ef9b
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.0040e0b0
test al, al
je 0x40efdc
push ebx
lea ecx, [ebp - 0x498]
call fcn.0040d170
add esp, 4
test eax, eax
jne 0x40edcf
push dword [ebx + 0x10]
mov ecx, ebx
call fcn.0040e0b0
test al, al
jne 0x40f045
mov eax, 0x2000000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f2b7
mov esp, ebp
pop ebp
ret 0x10
mov esi, 0x60000
jmp 0x40ef08
cmp word [ebp - 0x492], ax
jne 0x40f0e9
test edi, edi
jne 0x40f01c
cmp byte [ebp - 0x49d], 0
je 0x40f0e9
push ebx
lea ecx, [ebp - 0x498]
call fcn.0040d460
add esp, 4
test eax, eax
jne 0x40edcf
mov ax, word [ebp - 0x46c]
add dword [ebx + 0x10], 0x10
mov word [ebp - 0x494], ax
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x40edd4
push dword [ebp - 0x478]
call fcn.0040f71b
add esp, 4
mov esi, eax
push dword [ebp - 0x478]
push dword [ebp - 0x358]
push esi
call fcn.00411ba0
add esp, 0xc
mov dword [ebp - 0x358], esi
push 0x360
call fcn.0040f747
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 0x40f0b8
mov dword [ebx + 0x28], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f2b7
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ecx + 0x35c]
test eax, eax
je 0x40f0ce
mov ecx, eax
mov eax, dword [ecx + 0x35c]
test eax, eax
jne 0x40f0c2
mov dword [ecx + 0x35c], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f2b7
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.0040f2b7
mov esp, ebp
pop ebp
ret 0x10