Function at 0x1009ecbc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100be5bd
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x100ee3e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], ecx
call fcn.1005c404
movzx eax, al
test eax, eax
je 0x1009ed0a
push dword [ebp + 0xc]
push str.HandlePackageDownload__dwErrorCode_d
push 0xd2
push 0x100cf3c0
call fcn.1005c293
add esp, 0x10
push dword [ebp + 8]
mov ecx, dword [ebp - 0x48]
call fcn.100975e7
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1009ed23
jmp 0x1009eff4
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 8
cmp dword [ebp + 0xc], 0
jne 0x1009ee8a
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x42c], 0x64
push 0
push 0x100cf420
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx + 0x10]
mov eax, dword [eax]
push ecx
call dword [eax + 0x18]
cmp eax, 2
jne 0x1009ed88
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
mov ecx, dword [ebp - 0x48]
call fcn.1009765a
test eax, eax
jne 0x1009ed83
mov dword [ebp - 0x10], 7
mov dword [ebp - 0x1c], 5
jmp 0x1009ee88
mov eax, dword [ebp - 0x14]
cmp dword [eax + 4], 0x186a1
je 0x1009eda0
mov eax, dword [ebp - 0x14]
cmp dword [eax + 4], 0x186a2
jne 0x1009edea
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x430], 0x64
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x42c], 0x64
mov eax, dword [ebp - 0x14]
mov dword [eax + 8], 0xb
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
mov ecx, dword [ebp - 0x48]
call fcn.10098205
test eax, eax
jne 0x1009ede5
mov eax, dword [ebp - 0x14]
add eax, 0x90
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1009ee88
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
mov ecx, dword [ebp - 0x48]
call fcn.1009765a
test eax, eax
je 0x1009ee63
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
mov ecx, dword [ebp - 0x48]
call fcn.10098205
test eax, eax
je 0x1009ee63
mov eax, dword [ebp - 0x14]
add eax, 0x90
push eax
lea ecx, [ebp - 0x20]
call fcn.10024328
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x324], 0
je 0x1009ee55
push dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
call fcn.10024341
push eax
mov ecx, dword [ebp - 0x48]
call fcn.1009b033
test eax, eax
jne 0x1009ee55
mov dword [ebp - 0x1c], 5
mov dword [ebp - 0x10], 7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.1001767b
jmp 0x1009ee88
mov dword [ebp - 0x1c], 5
mov dword [ebp - 0x10], 6
mov eax, dword [ebp - 0x14]
push dword [eax + 0x320]
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
mov ecx, dword [ebp - 0x48]
call fcn.1009a8f3
jmp 0x1009eeaf
mov dword [ebp - 0x10], 7
mov dword [ebp - 0x1c], 4
mov eax, dword [ebp - 0x14]
push dword [eax + 0x320]
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
mov ecx, dword [ebp - 0x48]
call fcn.1009a8f3
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0xc4], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 2
je 0x1009eee6
cmp dword [ebp - 0x18], 1
jne 0x1009ef94
cmp dword [ebp + 0xc], 0
jne 0x1009ef61
lea ecx, [ebp - 0x24]
call fcn.10010607
mov dword [ebp - 4], 1
push 0
push 0x100cf428
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx + 0x10]
mov eax, dword [eax]
push ecx
call dword [eax + 0x18]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x28]
push 0x100cf354
lea eax, [ebp - 0x24]
push eax
call fcn.10015f61
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.100348a0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.10001418
push 0
push 0x64
push 0
push 2
mov ecx, 0x1010a470
call fcn.100b1db0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.100106a5
jmp 0x1009ef89
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x3c], esp
push 0x100cc7e2
call fcn.10001418
push dword [ebp + 0xc]
push 0
push 0
push 0x322
mov ecx, 0x1010a470
call fcn.100b1db0
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x48]
add ecx, 0x60
call fcn.100392df
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x48]
add ecx, 0x60
call fcn.10044dad
push eax
lea ecx, [ebp - 0x30]
call fcn.1003bf1f
movzx eax, al
test eax, eax
je 0x1009eff0
lea ecx, [ebp - 0x30]
call fcn.100418b4
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x1009efe6
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
push dword [ebp - 0x34]
call dword [eax + 0x14]
lea ecx, [ebp - 0x30]
call fcn.100418f9
jmp 0x1009efa3
xor eax, eax
jne 0x1009ef94
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret 8