Function at 0x40320f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x68]
mov eax, 0x2904
call fcn.00406ce0
mov eax, dword [0x4181b0]
xor eax, ebp
mov dword [ebp + 0x64], eax
push ebx
push esi
push edi
mov esi, ecx
push esi
push str._sShellNew
lea eax, [ebp - 0x2890]
push 0x800
push eax
mov dword [ebp - 0x2898], esi
mov byte [0x41816c], 0x52
mov byte [0x418154], 0x50
call fcn.00402453
add esp, 0x10
cmp byte [ebp + 0x70], 0
push esi
je 0x4034ed
call fcn.00402237
mov edi, 0x4136a8
mov esi, 0x80000000
test al, al
jne 0x403386
mov ebx, 0x200
push ebx
push edi
lea eax, [ebp - 0x890]
push eax
push edi
push dword [ebp - 0x2898]
push esi
call fcn.00404531
push ebx
push edi
lea eax, [ebp - 0x490]
push eax
mov ebx, str.Content_Type
push ebx
push dword [ebp - 0x2898]
push esi
call fcn.00404531
push 0x800
push edi
lea eax, [ebp - 0x1890]
push eax
push str.FileName
lea eax, [ebp - 0x2890]
push eax
push esi
call fcn.00404531
push 0xa
push edi
lea eax, [ebp - 0x90]
push eax
push str.NullFile
lea eax, [ebp - 0x2890]
push eax
push esi
call fcn.00404531
push dword [ebp - 0x2898]
mov byte [ebp - 0x2891], al
push str.Setup_s
lea eax, [ebp - 0x7c]
push 0x50
push eax
call fcn.00402453
add esp, 0x10
push dword [ebp - 0x2898]
push esi
call fcn.0040434e
movzx eax, al
push eax
push str.Exist
lea eax, [ebp - 0x7c]
push eax
call fcn.0040468e
lea eax, [ebp - 0x890]
push eax
push str.Type
lea eax, [ebp - 0x7c]
push eax
call fcn.00404675
lea eax, [ebp - 0x490]
push eax
push str.Content
lea eax, [ebp - 0x7c]
push eax
call fcn.00404675
cmp word [ebp - 0x1890], 0
jne 0x40337d
cmp byte [ebp - 0x2891], 0
je 0x40337d
push 0x413e50
push str.ShellNew
lea eax, [ebp - 0x7c]
push eax
call fcn.00404675
jmp 0x40338b
lea eax, [ebp - 0x1890]
push eax
jmp 0x40336d
mov ebx, str.Content_Type
cmp byte [ebp + 0x7c], 0
mov eax, str.WinRAR.ZIP
jne 0x40339b
mov eax, 0x413698
push eax
push edi
push dword [ebp - 0x2898]
push esi
call fcn.004044a8
push ebx
push dword [ebp - 0x2898]
push esi
call fcn.00404297
cmp byte [ebp + 0x78], 0
je 0x403424
call fcn.00403bda
neg eax
sbb eax, eax
and dword [ebp - 0x2898], 0
and eax, 0xffffffba
add eax, 0x64
mov dword [ebp - 0x289c], eax
test eax, eax
jle 0x403424
push dword [ebp - 0x2898]
lea eax, [ebp + 0x24]
push str..r_02d
push 0x20
push eax
call fcn.00402453
add esp, 0x10
push 0x413698
push edi
lea eax, [ebp + 0x24]
push eax
push esi
call fcn.004044a8
push ebx
lea eax, [ebp + 0x24]
push eax
push esi
call fcn.00404297
inc dword [ebp - 0x2898]
mov eax, dword [ebp - 0x2898]
cmp eax, dword [ebp - 0x289c]
jl 0x4033dc
cmp byte [ebp + 0x74], 0
je 0x4036e8
cmp byte [ebp + 0x7c], 0
jne 0x40343e
cmp byte [ebp + 0x78], 0
je 0x4036e8
lea eax, [ebp - 0x2890]
push eax
push esi
call fcn.0040424a
mov edi, 0x800
push edi
lea eax, [ebp - 0x1890]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp byte [ebp + 0x78], 0
mov eax, str.rarnew.dat
jne 0x403470
mov eax, str.zipnew.dat
push edi
push eax
lea eax, [ebp - 0x1890]
push eax
call fcn.00403d7f
lea eax, [ebp - 0x1890]
push eax
call fcn.00401a58
test al, al
jne 0x4034cf
push 0x413e94
lea eax, [ebp - 0x1890]
push eax
call fcn.00401a46
mov edi, eax
test edi, edi
je 0x4034cf
cmp byte [ebp + 0x78], 0
push edi
je 0x4034b7
push 0x14
push 1
push 0x41816c
jmp 0x4034c0
push 0x16
push 1
push 0x418154
call fcn.004076e9
add esp, 0x10
push edi
call fcn.0040750b
pop ecx
lea eax, [ebp - 0x1890]
push eax
push str.FileName
lea eax, [ebp - 0x2890]
push eax
push esi
call fcn.004044a8
jmp 0x4036e8
push str.Setup_s
lea eax, [ebp - 0x7c]
push 0x50
push eax
call fcn.00402453
add esp, 0x10
push esi
call fcn.00402237
test al, al
je 0x4036e8
push 1
push str.Exist
lea eax, [ebp - 0x7c]
push eax
call fcn.004046c7
test eax, eax
mov ebx, 0x200
push ebx
mov edi, 0x4136a8
push edi
lea eax, [ebp - 0x490]
push eax
push str.Type
lea eax, [ebp - 0x7c]
push eax
setne byte [ebp - 0x2891]
call fcn.004046a7
push 0x413698
lea eax, [ebp - 0x490]
push eax
call fcn.00405617
test eax, eax
je 0x403572
push str.WinRAR.ZIP
lea eax, [ebp - 0x490]
push eax
call fcn.00405617
test eax, eax
jne 0x40357b
xor eax, eax
mov word [ebp - 0x490], ax
push ebx
push edi
lea eax, [ebp - 0x890]
push eax
push str.Content
lea eax, [ebp - 0x7c]
push eax
call fcn.004046a7
cmp byte [ebp - 0x2891], 0
je 0x403649
lea eax, [ebp - 0x490]
push eax
push edi
push esi
mov esi, 0x80000000
push esi
call fcn.004044a8
cmp word [ebp - 0x890], 0
je 0x4035d7
lea eax, [ebp - 0x890]
push eax
push str.Content_Type
push dword [ebp - 0x2898]
push esi
call fcn.004044a8
jmp 0x4035e8
push str.Content_Type
push dword [ebp - 0x2898]
push esi
call fcn.00404297
push 0x800
push edi
lea eax, [ebp - 0x1890]
push eax
push str.ShellNew
lea eax, [ebp - 0x7c]
push eax
call fcn.004046a7
mov ebx, str.FileName
push ebx
lea eax, [ebp - 0x2890]
push eax
push esi
call fcn.00404297
cmp word [ebp - 0x1890], 0
je 0x403675
cmp word [ebp - 0x1890], 0x2a
jne 0x403632
push edi
push str.NullFile
jmp 0x40363a
lea eax, [ebp - 0x1890]
push eax
push ebx
lea eax, [ebp - 0x2890]
push eax
push esi
call fcn.004044a8
jmp 0x403675
lea eax, [ebp - 0x2890]
push eax
mov esi, 0x80000000
push esi
call fcn.0040424a
push edi
push edi
push dword [ebp - 0x2898]
push esi
call fcn.004044a8
push dword [ebp - 0x2898]
push esi
call fcn.0040424a
cmp byte [ebp + 0x78], 0
je 0x4036e8
xor ebx, ebx
push ebx
push str..r_02d
lea eax, [ebp + 0x24]
push 0x20
push eax
call fcn.00402453
add esp, 0x10
cmp byte [ebp - 0x2891], 0
je 0x4036d8
cmp word [ebp - 0x490], 0
je 0x4036d8
lea eax, [ebp - 0x490]
push eax
push edi
lea eax, [ebp + 0x24]
push eax
push esi
call fcn.004044a8
cmp word [ebp - 0x890], 0
je 0x4036e2
lea eax, [ebp - 0x890]
push eax
push str.Content_Type
lea eax, [ebp + 0x24]
push eax
push esi
call fcn.004044a8
jmp 0x4036e2
lea eax, [ebp + 0x24]
push eax
push esi
call fcn.0040424a
inc ebx
cmp ebx, 0x64
jl 0x40367d
mov ecx, dword [ebp + 0x64]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406ccd
add ebp, 0x68
leave
ret 0x10