Function at 0x402e30
Capabilities:
Delete directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x574
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov dword [0x4127e0], eax
mov ecx, dword [ebp + 0x14]
mov dword [0x40b040], ecx
push 0x200
push 0x4107f4
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp eax, 5
jae 0x402e72
mov eax, 0xff
jmp 0x403909
call fcn.00402014
mov dword [0x410f74], eax
mov byte [0x412380], 0
mov byte [0x41257f], 0
push 0x4107f4
push str.PACK_NAME
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x20c]
push eax
push 0x200
push 0x4107f4
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x402ef9
cmp dword [ebp - 4], 0
je 0x402ef9
xor ecx, ecx
mov cl, byte [0x412380]
test ecx, ecx
jne 0x402ee1
push 0x200
mov edx, dword [ebp - 4]
push edx
push 0x412380
call fcn.00401088
add esp, 0xc
mov eax, dword [ebp - 4]
mov byte [eax], 0
lea ecx, [ebp - 0x20c]
push ecx
push str.PACK_PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0x200
lea edx, [ebp - 0x55c]
push edx
push 0x4107f4
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [ebp - 0x55c]
push eax
push str.PACK_SHORTNAME
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x20c]
push edx
push 0x200
lea eax, [ebp - 0x55c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x402f83
cmp dword [ebp - 4], 0
je 0x402f83
xor ecx, ecx
mov cl, byte [0x412380]
test ecx, ecx
jne 0x402f6b
push 0x200
mov edx, dword [ebp - 4]
push edx
push 0x412380
call fcn.00401088
add esp, 0xc
mov eax, dword [ebp - 4]
mov byte [eax], 0
lea ecx, [ebp - 0x20c]
push ecx
push str.PACK_SHORTPATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
xor edx, edx
mov dl, byte [0x412380]
test edx, edx
je 0x402fc2
push 0x2e
push 0x412380
call fcn.00404290
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x402fc2
push str..exe
mov eax, dword [ebp - 4]
push eax
call fcn.00408c00
add esp, 8
test eax, eax
jne 0x402fc2
mov ecx, dword [ebp - 4]
mov byte [ecx], 0
cmp dword [ebp + 0x10], 0
je 0x403017
mov edx, dword [ebp + 0x10]
push edx
call fcn.00403940
add esp, 4
add eax, 1
cmp eax, 0x1000
jbe 0x402fea
mov dword [ebp - 0x568], 0x1000
jmp 0x402fff
mov eax, dword [ebp + 0x10]
push eax
call fcn.00403940
add esp, 4
add eax, 1
mov dword [ebp - 0x568], eax
mov ecx, dword [ebp - 0x568]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0x40f7f4
call fcn.004039c0
add esp, 0xc
mov byte [0x4107f3], 0
push 0x40f7f4
push str.__s__n
call fcn.0040100a
add esp, 8
push 0x40f7f4
call fcn.00402cbf
add esp, 4
mov dword [ebp - 0xc], 0
jmp 0x40304f
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [0x412584]
jge 0x403078
mov edx, dword [ebp - 0xc]
mov eax, dword [edx*4 + 0x4125a0]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push str._u___s__n
call fcn.0040100a
add esp, 0xc
jmp 0x403046
push 0
push 1
push 0
call fcn.0040149c
add esp, 0xc
mov dword [0x410f70], eax
cmp dword [0x410f70], 0
jne 0x4033ed
cmp dword [0x412584], 1
jle 0x4030e9
push str._help
mov edx, dword [0x4125a4]
push edx
call fcn.0040214b
add esp, 8
test eax, eax
jne 0x4030d0
push 0x40b6fc
mov eax, dword [0x4125a4]
push eax
call fcn.0040214b
add esp, 8
test eax, eax
je 0x4030e9
push 0
push 0x40b700
push str.Call_r_npack.exe_add_param1_param2__container_file.exe___pack_file__r_n_r_nParameter:_r_nwait_tWait_until_sub_process_finish_and_clean_up__default__r_nnowait_tquit_after_launching_sub_process_r_nfixpath_tquit_after_launching_sub_process__copy_sub_process_always_to_same_temp_path_r_nsilent_tdo_not_show_any_message_box_and_start_sub_process_minimized_r_nshow_tshow_the_wait_message_box_and_start_sub_process_normal__default__r_nnoshow_tdo_not_show_the_wait_message_box_but_start_sub_process_normal_r_nhide_tdo_not_show_anything__call_the_process_hidden_r_ncmd_tpass_the_command_line_to_the_sub_process_r_nnocmd_tdo_not_pass_the_command_line_to_the_sub_process__default__r_n
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4033e8
cmp dword [0x412584], 3
jle 0x4033e8
push 0x40b988
mov ecx, dword [0x4125a4]
push ecx
call fcn.0040214b
add esp, 8
test eax, eax
je 0x4033e8
push str.wait
mov edx, dword [0x4125a4]
push edx
call fcn.0040214b
add esp, 8
test eax, eax
je 0x403134
mov dword [0x40f7e8], 0
push str.nowait
mov eax, dword [0x4125a4]
push eax
call fcn.0040214b
add esp, 8
test eax, eax
je 0x403155
mov dword [0x40f7e8], 1
push str.fixpath
mov ecx, dword [0x4125a4]
push ecx
call fcn.0040214b
add esp, 8
test eax, eax
je 0x403177
mov dword [0x40f7e8], 2
push str.silent
mov edx, dword [0x4125a4]
push edx
call fcn.0040214b
add esp, 8
test eax, eax
je 0x403199
mov dword [0x40f7ec], 1
push str.show
mov eax, dword [0x4125a4]
push eax
call fcn.0040214b
add esp, 8
test eax, eax
je 0x4031ba
mov dword [0x40f7ec], 0
push str.noshow
mov ecx, dword [0x4125a4]
push ecx
call fcn.0040214b
add esp, 8
test eax, eax
je 0x4031dc
mov dword [0x40f7ec], 2
push str.hide
mov edx, dword [0x4125a4]
push edx
call fcn.0040214b
add esp, 8
test eax, eax
je 0x4031fe
mov dword [0x40f7ec], 3
push 0x40b9c4
mov eax, dword [0x4125a4]
push eax
call fcn.0040214b
add esp, 8
test eax, eax
je 0x40321f
mov dword [0x40f7f0], 1
push str.nocmd
mov ecx, dword [0x4125a4]
push ecx
call fcn.0040214b
add esp, 8
test eax, eax
je 0x403241
mov dword [0x40f7f0], 0
mov edx, dword [0x40f7e8]
push edx
push str.nowait__u_n
call fcn.0040100a
add esp, 8
mov eax, dword [0x40f7ec]
push eax
push str.silent__u_n
call fcn.0040100a
add esp, 8
mov ecx, dword [0x40f7f0]
push ecx
push str.usecmd__u_n
call fcn.0040100a
add esp, 8
push 0x200
mov edx, dword [0x4125a8]
push edx
push 0x4109f4
call fcn.00401088
add esp, 0xc
push 0
push 1
push 0x4109f4
call fcn.0040149c
add esp, 0xc
mov dword [0x410f70], eax
mov eax, dword [0x410f70]
push eax
push 0x40b9f4
call fcn.0040100a
add esp, 8
mov dword [ebp - 0x560], 0
jmp 0x4032d9
mov ecx, dword [ebp - 0x560]
add ecx, 1
mov dword [ebp - 0x560], ecx
cmp dword [ebp - 0x560], 5
jge 0x40330d
mov edx, dword [0x4125ac]
push edx
mov eax, dword [0x410f70]
push eax
call fcn.00401d4d
add esp, 8
test eax, eax
je 0x403304
mov dword [ebp - 8], 0
jmp 0x40330d
mov dword [ebp - 8], 0xfd
jmp 0x4032ca
cmp dword [ebp - 8], 0
jne 0x4033e8
mov dword [ebp - 0x560], 0
jmp 0x403332
mov ecx, dword [ebp - 0x560]
add ecx, 1
mov dword [ebp - 0x560], ecx
cmp dword [ebp - 0x560], 0x28
jge 0x4033d5
mov dword [ebp - 8], 0
mov edx, dword [0x410f70]
push edx
push str.increase_number__u_n
call fcn.0040100a
add esp, 8
push 1
push 3
push 0x4109f4
call fcn.0040149c
add esp, 0xc
mov dword [0x412580], eax
push 0
push 1
push 0x4109f4
call fcn.0040149c
add esp, 0xc
mov dword [0x410f78], eax
mov eax, dword [0x410f70]
add eax, 1
cmp dword [0x412580], eax
jne 0x4033a6
mov ecx, dword [0x412580]
cmp ecx, dword [0x410f78]
jne 0x4033a6
jmp 0x4033d5
mov dword [ebp - 8], 0xf9
push 0x40ba18
call fcn.0040100a
add esp, 4
mov edx, dword [ebp - 0x560]
imul edx, edx, 0x14
add edx, 0xc8
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x403323
mov eax, dword [0x410f78]
push eax
push str.newnumber__u_n
call fcn.0040100a
add esp, 8
jmp 0x4038f5
call fcn.00402db7
push 0
push 1
push 0
call fcn.0040149c
add esp, 0xc
mov dword [0x410f70], eax
cmp dword [0x410f70], 0
jne 0x403415
mov dword [ebp - 8], 0xf8
mov ecx, dword [0x410f70]
push ecx
push str.maxnumber__u_n
call fcn.0040100a
add esp, 8
cmp dword [ebp - 8], 0
jne 0x4034cc
mov dword [ebp - 0x560], 0
jmp 0x40344e
mov edx, dword [ebp - 0x560]
add edx, 1
mov dword [ebp - 0x560], edx
cmp dword [ebp - 0x560], 0x28
jge 0x4034a3
mov dword [ebp - 8], 0
push 1
lea eax, [ebp - 0x35c]
push eax
push 0
call fcn.0040180c
add esp, 0xc
test eax, eax
je 0x403477
jmp 0x4034a3
mov dword [ebp - 8], 0xf7
push 0x40ba44
call fcn.0040100a
add esp, 4
mov ecx, dword [ebp - 0x560]
imul ecx, ecx, 0x14
add ecx, 0xc8
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40343f
cmp dword [ebp - 8], 0
jne 0x4034cc
mov edx, dword [ebp - 0x22c]
mov dword [0x40f7e8], edx
mov eax, dword [ebp - 0x228]
mov dword [0x40f7ec], eax
mov ecx, dword [ebp - 0x220]
mov dword [0x40f7f0], ecx
cmp dword [ebp - 8], 0
jne 0x40360b
push 0
push 0x4026a5
call fcn.004024ed
add esp, 8
mov dword [0x410f7c], eax
mov edx, dword [0x410bf4]
push edx
call fcn.00402720
add esp, 4
xor eax, eax
cmp dword [0x40f7e8], 2
setne al
dec eax
and eax, 0x412380
push eax
push 0x4125e0
call fcn.00402a74
add esp, 8
push 0x4125e0
push str.PACK_TEMPPATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0x200
lea ecx, [ebp - 0x55c]
push ecx
push 0x4125e0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea edx, [ebp - 0x55c]
push edx
push str.PACK_TEMPSHORTPATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov dword [ebp - 0xc], 0
jmp 0x403564
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [0x410f70]
jge 0x4035fd
cmp dword [ebp - 8], 0
jne 0x4035fd
mov dword [ebp - 0x560], 0
jmp 0x403598
mov edx, dword [ebp - 0x560]
add edx, 1
mov dword [ebp - 0x560], edx
cmp dword [ebp - 0x560], 0x28
jge 0x4035f8
mov dword [ebp - 8], 0
mov eax, dword [0x410bf4]
push eax
call fcn.00402720
add esp, 4
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0040180c
add esp, 0xc
test eax, eax
je 0x4035cc
jmp 0x4035f8
mov dword [ebp - 8], 0xf4
push str.retry_..._n
call fcn.0040100a
add esp, 4
mov edx, dword [ebp - 0x560]
imul edx, edx, 0x14
add edx, 0xc8
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x403589
jmp 0x40355b
mov eax, dword [0x410bf4]
push eax
call fcn.00402720
add esp, 4
cmp dword [0x410bf4], 0
je 0x403621
mov ecx, dword [0x410bf4]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x410bf4], 0
cmp dword [ebp - 8], 0
jne 0x4038d5
xor edx, edx
test edx, edx
jne 0x403659
cmp dword [0x412584], 1
jle 0x4036a1
push str.stop
mov eax, dword [0x4125a4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4036a1
push 0x4125e0
push str.explorer.exe___s_
push 0x410f80
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x4125e0
push 0x410f80
push 0x40ba9c
call fcn.0040100a
add esp, 0xc
push 0x4125e0
push 1
push 0x410f80
call fcn.004027db
add esp, 0xc
jmp 0x4038d5
mov ecx, dword [ebp - 0x224]
push ecx
push 0x40baac
lea edx, [ebp - 0x20c]
push edx
call fcn.00403f7b
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push str.PACK_BUILD1900
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
cmp dword [0x40f7f0], 0
je 0x4037e1
mov byte [0x40f7f4], 0
cmp dword [ebp + 0x10], 0
je 0x403737
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00403940
add esp, 4
add eax, 1
cmp eax, 0x1000
jbe 0x40370a
mov dword [ebp - 0x56c], 0x1000
jmp 0x40371f
mov edx, dword [ebp + 0x10]
push edx
call fcn.00403940
add esp, 4
add eax, 1
mov dword [ebp - 0x56c], eax
mov eax, dword [ebp - 0x56c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0x40f7f4
call fcn.004039c0
add esp, 0xc
mov byte [0x4107f3], 0
mov dword [ebp - 0x564], 0x40f7f4
mov edx, dword [ebp - 0x564]
xor eax, eax
mov al, byte [edx]
cmp eax, 0x20
jne 0x403768
mov ecx, dword [ebp - 0x564]
add ecx, 1
mov dword [ebp - 0x564], ecx
jmp 0x403748
mov edx, dword [ebp - 0x564]
xor eax, eax
mov al, byte [edx]
test eax, eax
je 0x403784
mov ecx, dword [ebp - 0x564]
mov dword [ebp - 0x570], ecx
jmp 0x40378e
mov dword [ebp - 0x570], 0x410c18
mov edx, dword [ebp - 0x564]
xor eax, eax
mov al, byte [edx]
test eax, eax
je 0x4037a8
mov dword [ebp - 0x574], 0x40bac0
jmp 0x4037b2
mov dword [ebp - 0x574], 0x410c1c
mov ecx, dword [ebp - 0x570]
push ecx
mov edx, dword [ebp - 0x574]
push edx
lea eax, [ebp - 0x33c]
push eax
push 0x4125e0
push str.__s_s__s_s
push 0x410f80
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
jmp 0x403800
lea ecx, [ebp - 0x33c]
push ecx
push 0x4125e0
push str._s_s
push 0x410f80
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
cmp dword [0x40f7ec], 1
jne 0x403813
mov dword [0x40b040], 2
cmp dword [0x40f7ec], 3
jne 0x403826
mov dword [0x40b040], 0
push 0x4125e0
push 0x410f80
push str.START_n_s_n_s_n
call fcn.0040100a
add esp, 0xc
push 0x4125e0
mov edx, dword [0x40f7e8]
neg edx
sbb edx, edx
and edx, 0xffc91181
add edx, 0x36ee80
push edx
push 0x410f80
call fcn.004027db
add esp, 0xc
cmp dword [0x40f7e8], 0
jne 0x4038d5
cmp dword [0x410bf4], 0
je 0x403884
mov eax, dword [0x410bf4]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x410bf4], 0
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x4125e0
push str.Delete_files__s_n
call fcn.0040100a
add esp, 8
push 0x4125e0
call fcn.00402b60
add esp, 4
push 0x4125e0
push str.Delete_folder__s_n
call fcn.0040100a
add esp, 8
push 0x4125e0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
cmp dword [0x410bf4], 0
je 0x4038eb
mov ecx, dword [0x410bf4]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x410bf4], 0
mov edx, dword [ebp - 8]
push edx
push str.finish_result__u_n
call fcn.0040100a
add esp, 8
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x10