Function at 0x406080
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43d12d
push eax
mov dword fs:[0], esp
sub esp, 0x45c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x480]
xor ebx, ebx
cmp edi, ebx
mov esi, ecx
je 0x406210
lea ebp, [esi + 0x20c]
cmp ebp, ebx
mov dword [esp + 0x58], ebp
je 0x4060c9
push 0xffffffffffffffff
mov ecx, ebp
call fcn.00404800
lea ecx, [esp + 0x2c]
mov dword [esp + 0x474], ebx
call fcn.0040a790
lea eax, [esp + 0x264]
mov ecx, esi
push eax
mov byte [esp + 0x478], 1
call fcn.00404be0
push eax
lea ecx, [esp + 0x30]
call fcn.0040a7d0
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x30]
call fcn.0040a8f0
lea ecx, [esp + 0x40]
mov byte [esp + 0x474], 2
call fcn.00409eb0
test eax, eax
jne 0x40614b
lea ecx, [esp + 0x40]
mov byte [esp + 0x474], 1
call fcn.00409ea0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x474], bl
call fcn.0040a7f0
cmp ebp, ebx
je 0x406210
jmp 0x406209
lea edx, [esp + 0x10]
lea ecx, [esp + 0x40]
push edx
call fcn.00409ec0
lea ecx, [esp + 0x10]
mov byte [esp + 0x474], 3
call fcn.00409eb0
test eax, eax
je 0x4061d3
mov esi, dword [esp + 0x47c]
push str.order
lea ecx, [esp + 0x14]
call fcn.0040a260
test eax, eax
je 0x4061a8
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x10]
push eax
push 0x4445f8
mov dword [esp + 0x44], ebx
call fcn.0040a200
cmp esi, dword [esp + 0x3c]
je 0x40622d
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x14]
call fcn.00409f40
mov edx, dword [eax + 4]
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], edx
call fcn.00409ea0
lea ecx, [esp + 0x10]
call fcn.00409eb0
test eax, eax
jne 0x406175
lea ecx, [esp + 0x10]
mov byte [esp + 0x474], 2
call fcn.00409ea0
lea ecx, [esp + 0x40]
mov byte [esp + 0x474], 1
call fcn.00409ea0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x474], bl
call fcn.0040a7f0
cmp ebp, ebx
je 0x406210
mov ecx, ebp
call fcn.00404820
xor eax, eax
mov ecx, dword [esp + 0x46c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x468
ret 8
push edi
push str.state
lea ecx, [esp + 0x18]
call fcn.0040a550
push edi
push str.completed
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4063fb
lea ecx, [esp + 0x34]
call fcn.00409e50
lea eax, [esp + 0x34]
lea ecx, [esp + 0x10]
push eax
push str.bundles
mov byte [esp + 0x47c], 4
call fcn.0040a010
test eax, eax
je 0x4063ea
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x38]
call fcn.00409ec0
lea ecx, [esp + 0x24]
mov byte [esp + 0x474], 5
call fcn.00409eb0
test eax, eax
je 0x4063bd
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.bundle
lea ecx, [esp + 0x28]
call fcn.0040a260
test eax, eax
je 0x40638e
lea edx, [esp + 0x18]
lea ecx, [esp + 0x24]
push edx
call fcn.00409ec0
lea ecx, [esp + 0x18]
mov byte [esp + 0x474], 6
call fcn.00409eb0
test eax, eax
je 0x40637d
push str.resource
lea ecx, [esp + 0x1c]
call fcn.0040a260
test eax, eax
je 0x40634e
lea eax, [esp + 0x20]
lea ecx, [esp + 0x18]
push eax
push str.flag
mov dword [esp + 0x28], ebx
call fcn.0040a200
test byte [esp + 0x20], 1
je 0x40634e
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x5e]
mov word [esp + 0x5c], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x5c]
push ecx
push str.path
lea ecx, [esp + 0x20]
stosw word es:[edi], ax
call fcn.0040a0d0
cmp word [esp + 0x5c], bx
je 0x40634e
lea edx, [esp + 0x5c]
push edx
call esi
lea eax, [esp + 0x48]
lea ecx, [esp + 0x18]
push eax
call fcn.00409f40
mov ecx, dword [eax + 4]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x48]
call fcn.00409ea0
lea ecx, [esp + 0x18]
call fcn.00409eb0
test eax, eax
jne 0x4062e9
lea ecx, [esp + 0x18]
mov byte [esp + 0x474], 5
call fcn.00409ea0
lea edx, [esp + 0x50]
lea ecx, [esp + 0x24]
push edx
call fcn.00409f40
mov eax, dword [eax + 4]
lea ecx, [esp + 0x50]
mov dword [esp + 0x28], eax
call fcn.00409ea0
lea ecx, [esp + 0x24]
call fcn.00409eb0
test eax, eax
jne 0x4062ac
sub esp, 8
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.00409e80
lea ecx, [esp + 0x18]
call fcn.00409fc0
lea ecx, [esp + 0x24]
mov byte [esp + 0x474], 4
call fcn.00409ea0
lea ecx, [esp + 0x34]
mov byte [esp + 0x474], 3
call fcn.00409ea0
lea eax, [esp + 0x264]
lea ecx, [esp + 0x2c]
push eax
call fcn.0040a950
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x474], 2
call fcn.00409ea0
lea ecx, [esp + 0x40]
mov byte [esp + 0x474], 1
call fcn.00409ea0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x474], bl
call fcn.0040a7f0
cmp ebp, ebx
je 0x40644b
mov ecx, ebp
call fcn.00404820
mov eax, esi
jmp 0x406212