Function at 0x4046ec
Capabilities:
Check if file exists
Create process on windows
Create thread
Delete directory
Delete file
Get file attributes
Read file on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
or dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x438]
push ebx
push esi
push edi
push 0x104
push eax
push dword [0x43cad8]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x42d930
lea eax, [ebp - 0x438]
push eax
push 0x43e660
call fcn.0041869f
add esp, 0xc
test eax, eax
jne 0x404f00
push dword [0x43e660]
call fcn.0040237a
push 2
push ebx
push ebx
push dword [0x43e660]
mov edi, eax
call fcn.004180aa
push dword [0x43e660]
call fcn.00418f79
mov ebx, dword [ebp + 8]
mov esi, eax
xor ecx, ecx
mov dword [ebp - 8], esi
add esp, 0x18
mov eax, edx
mov dword [ebp - 4], eax
cmp word [ebx], cx
jne 0x404793
cmp esi, edi
jne 0x404793
cmp eax, ecx
jne 0x404793
push dword [0x43e660]
call fcn.0041880b
pop ecx
xor eax, eax
jmp 0x404f03
push dword [0x43e660]
call fcn.0041880b
xor eax, eax
mov dword [0x43e660], eax
cmp word [ebx], ax
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop ecx
jne 0x4049a0
lea eax, [ebp - 0x438]
push 0x42d930
push eax
push 0x43e660
mov dword [ebp + 8], eax
call fcn.0041869f
add esp, 0xc
test eax, eax
jne 0x4049f5
test edi, edi
je 0x404780
push 0x3e4
call fcn.00416f46
mov esi, eax
xor eax, eax
push eax
push eax
push edi
push dword [0x43e660]
call fcn.004180aa
push dword [0x43e660]
push 0x3e4
push 1
push esi
call fcn.00417bad
mov ecx, 0x3e4
add esp, 0x24
cmp eax, ecx
jne 0x404979
cmp byte [esi], 0x44
jne 0x404952
cmp byte [esi + 1], 0x45
jne 0x404952
cmp byte [esi + 2], 0x43
jne 0x404952
cmp byte [esi + 3], 0x5a
jne 0x404952
cmp byte [esi + 4], 0x49
jne 0x404952
cmp byte [esi + 5], 0x50
jne 0x404952
cmp byte [esi + 7], 0x55
jne 0x404952
xor ecx, ecx
cmp word [esi + 0x210], cx
jne 0x404878
mov dword [esi + 0x318], ecx
mov byte [esi + 6], 0x33
jmp 0x4048d9
cmp byte [esi + 6], 0x36
jne 0x4048d9
push 0xffffffffffffffff
call fcn.00405c28
pop ecx
test eax, eax
jne 0x4048d2
push esi
call fcn.00416f2b
push dword [0x43e660]
call fcn.0041880b
pop ecx
pop ecx
push 0x80
lea eax, [ebp - 0x130]
push eax
push 0x16
push dword [0x43cad8]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x10
push str.ZIP_SFX
lea eax, [ebp - 0x130]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40478c
mov byte [0x43cae6], 0x36
lea eax, [ebp - 0x438]
push eax
push esi
push 0x43cae8
call fcn.00402d3f
add esp, 0xc
mov dword [ebp - 0xc], eax
lea eax, [esi + 0x210]
push eax
push 0x43ccf0
call ebx
mov eax, dword [esi + 0x310]
mov dword [0x43cdf0], eax
mov eax, dword [esi + 0x314]
mov dword [0x43cdf4], eax
mov eax, dword [esi + 0x318]
mov dword [0x43cdf8], eax
mov eax, dword [esi + 0x31c]
mov dword [0x43cdfc], eax
mov eax, dword [esi + 0x320]
mov dword [0x43ce00], eax
lea eax, [esi + 0x324]
push eax
push 0x43ce04
call ebx
lea eax, [esi + 0x364]
push eax
push 0x43ce44
call ebx
push 2
xor eax, eax
push eax
push eax
push dword [0x43e660]
call fcn.004180aa
push dword [0x43e660]
call fcn.00418f79
add esp, 0x14
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
jmp 0x40497b
sub edi, ecx
push esi
call fcn.00416f2b
xor eax, eax
push eax
push eax
push eax
push dword [0x43e660]
call fcn.004180aa
mov esi, dword [ebp - 8]
add esp, 0x14
cmp dword [0x43e660], 0
jne 0x404a10
push 0x42d930
push dword [ebp + 8]
push 0x43e660
call fcn.0041869f
add esp, 0xc
test eax, eax
jne 0x404a01
push 2
push eax
push eax
push dword [0x43e660]
call fcn.004180aa
push dword [0x43e660]
call fcn.00418f79
mov esi, eax
mov dword [ebp - 4], edx
xor eax, eax
mov dword [ebp - 8], esi
push eax
push eax
push eax
push dword [0x43e660]
call fcn.004180aa
mov eax, dword [0x43e660]
add esp, 0x24
jmp 0x404a08
and dword [0x43e660], 0
jmp 0x40478c
xor eax, eax
mov dword [0x43e660], eax
test eax, eax
je 0x40478c
push dword [ebp - 4]
push esi
call fcn.004051ba
or eax, edx
pop ecx
pop ecx
jne 0x404a54
push 0x80
lea eax, [ebp - 0x130]
push eax
push 0xd
push dword [0x43cad8]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x10
push str.ZIP_SFX
lea eax, [ebp - 0x130]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x404780
cmp word [0x43ce44], 0
je 0x404a7b
push 0x24
push 0x43ce04
push 0x43ce44
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x404780
mov eax, dword [0x43ce00]
add edi, 0x3e4
test eax, eax
je 0x404acd
push dword [ebp + 8]
push edi
push dword [ebp - 4]
push esi
push eax
push dword [0x43cad8]
push dword [0x43e660]
call fcn.0040271a
add esp, 0x1c
test eax, eax
jne 0x404ab8
cmp word [0x43ccf0], ax
jne 0x404780
xor esi, esi
push esi
push esi
push edi
push dword [0x43e660]
call fcn.004180aa
add esp, 0x10
jmp 0x404acf
xor esi, esi
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x230]
push eax
push dword [ebp + 8]
call fcn.004022c6
add esp, 0xc
mov edi, 0x43cae8
cmp word [0x43cae8], 0
jne 0x404b01
lea eax, [ebp - 0x230]
push eax
push edi
call ebx
push 0x2e
pop eax
push eax
lea eax, [ebp - 0x638]
push eax
call fcn.004135ac
pop ecx
pop ecx
test eax, eax
je 0x404b1c
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x638]
push eax
call fcn.00402276
pop ecx
cmp dword [0x43cdfc], 0
jne 0x404b48
lea eax, [ebp - 0x638]
push eax
call fcn.00401cc9
pop ecx
cmp eax, 1
jne 0x404780
push edi
call fcn.0040229b
push edi
call fcn.00402256
cmp word [0x43cae8], 0
pop ecx
pop ecx
jne 0x404b6f
lea eax, [ebp - 0x230]
push eax
push edi
call ebx
jmp 0x404c8a
push 0x5c
pop eax
push eax
push edi
call fcn.004135ac
pop ecx
pop ecx
test eax, eax
jne 0x404ba1
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [eax*2 + 0x43cae6], 0x3a
je 0x404ba1
push edi
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x404b60
movzx eax, word [0x43cae8]
push 0x5c
pop ecx
cmp ax, cx
jne 0x404bc0
cmp word [0x43caea], cx
je 0x404bd8
push 0x43caea
jmp 0x404b92
push 0x2e
pop edx
cmp ax, dx
jne 0x404bd8
cmp word [0x43caea], cx
jne 0x404bd8
push 0x43caec
jmp 0x404b92
push 0x42d938
push edi
call fcn.00413341
pop ecx
pop ecx
cmp eax, edi
jne 0x404c8a
push 0x42d938
mov edi, esi
push 0x43cae8
jmp 0x404c0d
add esi, 4
inc edi
push esi
push 0x43cae8
call ebx
push 0x42d938
push esi
call fcn.00413341
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x404bfb
lea eax, [ebp - 0x230]
push eax
call fcn.00402256
lea eax, [ebp - 0x230]
push eax
call fcn.00416a45
pop ecx
xor ebx, ebx
mov esi, eax
pop ecx
test edi, edi
jle 0x404c56
push 0x5c
pop eax
push eax
push esi
call fcn.004135ac
pop ecx
pop ecx
test eax, eax
je 0x404cb0
xor ecx, ecx
inc ebx
mov word [eax], cx
cmp ebx, edi
jl 0x404c3c
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x230]
push esi
push eax
call ebx
mov edi, 0x43cae8
lea eax, [ebp - 0x230]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x230]
push eax
push edi
call ebx
push esi
call fcn.00416f2b
pop ecx
push 0x42d940
push edi
call fcn.004183a3
push edi
mov esi, eax
call fcn.00416bc6
add esp, 0xc
cmp esi, eax
je 0x404cd3
lea eax, [ebp - 0x230]
push eax
push edi
call ebx
jmp 0x404ccc
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x230]
push eax
mov edi, 0x43cae8
push edi
call ebx
push esi
call fcn.00416f2b
pop ecx
xor esi, esi
jmp 0x404b29
push edi
call fcn.00402276
push edi
call fcn.0040222a
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, 0x80
cmp eax, 0xffffffff
jne 0x404d92
cmp dword [0x43cdf0], 0
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
jne 0x404d4e
push ebx
lea eax, [ebp - 0x130]
push eax
push 0xe
push dword [0x43cad8]
call esi
push edi
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x838]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x838]
push 0x21
push str.ZIP_SFX
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 1
jne 0x404edf
push edi
call fcn.00402028
pop ecx
test eax, eax
jne 0x404d92
push ebx
lea eax, [ebp - 0x838]
push eax
push 0x11
push dword [0x43cad8]
call esi
push 0x10
push str.ZIP_SFX
lea eax, [ebp - 0x838]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [0x43e660]
call fcn.0041880b
pop ecx
jmp 0x404edf
push dword [ebp - 4]
mov esi, dword [ebp - 8]
push esi
call fcn.00401d0d
pop ecx
pop ecx
push 0x3ec
push dword [0x43cec4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, eax
xor ebx, ebx
mov eax, esi
mov dword [0x43eaac], ecx
cdq
mov esi, 0x2800
idiv esi
push eax
push ebx
push 0x406
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp + 8]
push 0x403f84
push ebx
push ebx
call fcn.00418558
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
add esp, 0x18
mov esi, eax
jmp 0x404e1c
lea eax, [ebp - 0x30]
push eax
push dword [0x43cec4]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x404e1c
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x30]
push eax
call edi
test eax, eax
jne 0x404df4
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x43cec8], ebx
jne 0x404ee2
cmp word [0x43ccf0], bx
je 0x404eb5
push dword [0x43cdf8]
mov ebx, 0x43cae8
push ebx
push 0x43ccf0
call fcn.0040591a
add esp, 0xc
cmp dword [0x43cef4], 0
je 0x404edf
call fcn.00402c1c
jmp 0x404e9a
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00402c2e
mov esi, eax
test esi, esi
jne 0x404e82
cmp dword [ebp - 0xc], eax
je 0x404edf
push ebx
call fcn.00403eba
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x404edf
cmp dword [0x43cdf4], ebx
je 0x404edf
cmp dword [ebp - 0x10], ebx
jne 0x404edf
push 0x40
call dword [sym.imp.USER32.dll_MessageBeep]
push 0xa
push ebx
push ebx
push 0x43cae8
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ebx, ebx
inc ebx
push dword [0x43e660]
call fcn.0041880b
cmp dword [0x43cef4], 0
pop ecx
je 0x404efc
call fcn.00402b7e
mov eax, ebx
jmp 0x404f03
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret