Function at 0x401e70
Capabilities:
Delete file

Disassembly:
sub esp, 0x22c
push ebx
push ebp
mov ebp, dword [esp + 0x23c]
push esi
push edi
xor ebx, ebx
push 0x409308
push ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], ebx
call fcn.004035c0
mov esi, eax
add esp, 8
cmp esi, ebx
mov dword [esp + 0x10], esi
jne 0x401ec2
push ebp
push str.Cannot_open__s_for_input_n
call fcn.00402c80
add esp, 8
jmp 0x4021aa
push esi
lea eax, [esp + 0x38]
push 0x103
push eax
mov dword [0x40bd70], ebx
call fcn.004036c0
add esp, 0xc
test eax, eax
je 0x401f3c
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
dec esi
js 0x401f0b
movsx ecx, byte [esp + esi + 0x34]
push ecx
call fcn.00403690
add esp, 4
test eax, eax
je 0x401f0b
mov byte [esp + esi + 0x34], bl
dec esi
jns 0x401ef2
mov al, byte [esp + 0x34]
cmp al, bl
je 0x401f1d
cmp al, 0x3b
je 0x401f1d
inc dword [0x40bd70]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x34]
push edx
push 0x103
push eax
call fcn.004036c0
add esp, 0xc
test eax, eax
jne 0x401edf
mov esi, dword [esp + 0x10]
push ebx
push ebx
push esi
call fcn.004035f0
mov eax, dword [0x40bd70]
add esp, 0xc
cmp eax, ebx
jne 0x401f63
push ebp
push str.No_packages_named_in__s_n
call fcn.00402c80
add esp, 8
jmp 0x4021aa
mov edi, dword [esp + 0x240]
push 0x4092cc
push edi
call fcn.004035c0
mov ebp, eax
add esp, 8
cmp ebp, ebx
mov dword [esp + 0x18], ebp
jne 0x401f95
push edi
push str.Cannot_open__s_for_output_n
call fcn.00402c80
add esp, 8
jmp 0x4021aa
mov ecx, dword [0x40bd6c]
push ebx
push 0x402df0
push ebx
push 0x65
push ecx
mov dword [esp + 0x40], 1
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push esi
lea edx, [esp + 0x38]
push 0x103
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], ebx
call fcn.004036c0
add esp, 0xc
test eax, eax
je 0x402180
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x24], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x20], ebx
mov esi, ecx
dec esi
js 0x40200a
movsx eax, byte [esp + esi + 0x34]
push eax
call fcn.00403690
add esp, 4
test eax, eax
je 0x40200a
mov byte [esp + esi + 0x34], bl
dec esi
jns 0x401ff1
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40214e
cmp byte [esp + 0x34], 0x3b
je 0x40214e
lea ecx, [esp + 0x34]
push ecx
call fcn.00402780
add esp, 4
lea edx, [esp + 0x24]
lea eax, [esp + 0x34]
push edx
push 0xffffffffffffffff
push eax
call fcn.00402b30
add esp, 0xc
test eax, eax
jl 0x40216f
mov eax, dword [0x40bd68]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x28]
mov ecx, dword [eax]
push ebx
push edx
push eax
call dword [ecx + 0x18]
test eax, eax
jge 0x402083
lea eax, [esp + 0x34]
push eax
push str._Warning:_unable_to_retrieve_package__s_n
call fcn.00403490
add esp, 8
jmp 0x40210e
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x138]
push 0x104
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
test eax, eax
jge 0x4020b2
lea eax, [esp + 0x34]
push eax
push str._Warning:_unable_to_retrieve_package_path_for__s_n
call fcn.00403490
add esp, 8
jmp 0x40210e
lea ecx, [esp + 0x34]
push ecx
call fcn.004027a0
add esp, 4
lea edx, [esp + 0x138]
lea eax, [esp + 0x34]
push edx
push eax
push ebp
call fcn.00402210
add esp, 0xc
cmp eax, ebx
jge 0x40210e
cmp eax, 0x80030002
jne 0x4020f4
lea ecx, [esp + 0x34]
push ecx
push str._Warning:_zip_file_for_package__s_does_not_exist_n
call fcn.00403490
add esp, 8
jmp 0x40210e
lea edx, [esp + 0x34]
push edx
push str._Fatal_error_adding_package__s_n
call fcn.00403490
add esp, 8
mov dword [esp + 0x28], 1
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x40211f
push eax
call fcn.004035e0
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40212d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [esp + 0x28], ebx
jne 0x4021a6
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
inc eax
push eax
push edx
mov dword [esp + 0x38], eax
call fcn.00402d80
mov ebp, dword [esp + 0x20]
add esp, 8
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x34]
push eax
push 0x103
push ecx
call fcn.004036c0
add esp, 0xc
test eax, eax
jne 0x401fd6
jmp 0x40217c
push str.Insufficient_memory_n
call fcn.00403490
add esp, 4
mov esi, dword [esp + 0x10]
push ebp
call fcn.00402530
add esp, 4
test eax, eax
jl 0x402197
mov dword [esp + 0x14], 1
jmp 0x4021aa
push str.Failed_to_create_central_directory_n
call fcn.00403490
add esp, 4
jmp 0x4021aa
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4021d7
push eax
call fcn.004034d0
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
jne 0x4021d7
cmp dword [esp + 0x2c], ebx
je 0x4021d7
mov edx, dword [esp + 0x240]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, ebx
je 0x4021e4
push esi
call fcn.004034d0
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4021f3
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x22c
ret