Function at 0x412f85
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x488]
sub esp, 0x510
mov eax, dword [0x48e610]
xor eax, ebp
mov dword [ebp + 0x484], eax
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov dword [ebp + 0x7c], ebx
call fcn.0040e225
test eax, eax
je 0x4135e2
cmp dword [esi + 0x38c], ebx
je 0x4135e2
mov eax, dword [esi + 0x380]
mov dword [esi + 0x334], ebx
mov dword [esi + 0x338], ebx
mov dword [esi + 0x35c], ebx
mov edi, dword [eax + 8]
lea ecx, [esi + 0x37c]
call fcn.004408c0
lea ecx, [ebp - 0x40]
call fcn.0040b5d3
lea eax, [ebp - 0x40]
mov dword [esi + 0x460], eax
lea eax, [esi + 0xa8]
push eax
lea ecx, [ebp + 0x3c]
mov dword [esi + 0x464], edi
call fcn.0043f6f0
push ebx
lea eax, [ebp + 0x3c]
push eax
lea ecx, [ebp - 4]
call fcn.0040c448
lea ecx, [ebp + 0x3c]
call fcn.0043f790
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ebx, [edi + 0x64]
mov dword [edi + 0x28], eax
cmp byte [ebx + 7], 0xff
mov eax, dword [esi + 0x2c]
mov ecx, ebx
jne 0x41303d
mov ecx, dword [ebx]
xor edx, edx
test eax, eax
push 0
setne dl
lea eax, [ebp - 4]
push edx
push dword [esi + 0x8ac]
push edi
push ecx
push eax
push esi
push esi
lea ecx, [ebp - 0x40]
call fcn.0040bb18
mov dword [ebp + 0x78], eax
test eax, eax
jns 0x4130eb
push str.first_download_failed__trying_second
lea ecx, [ebp + 0x34]
call fcn.0043f7b0
lea eax, [ebp + 0x34]
push eax
call fcn.0040d9ba
pop ecx
lea ecx, [ebp + 0x34]
call fcn.0043f790
lea eax, [edi + 0x6c]
push eax
lea eax, [ebp - 0x50]
push str.trying_backup_
push eax
call fcn.004400e0
push eax
call fcn.0040d9ba
add esp, 0x10
lea ecx, [ebp - 0x50]
call fcn.0043f790
lea eax, [edi + 0x6c]
push eax
push ebx
call fcn.0040ce04
pop ecx
pop ecx
test al, al
je 0x4130eb
mov ecx, dword [esi + 0x2c]
lea eax, [edi + 0x6c]
cmp byte [eax + 7], 0xff
jne 0x4130c8
mov eax, dword [eax]
xor edx, edx
test ecx, ecx
push 0
setne dl
lea ecx, [ebp - 0x40]
push edx
push dword [esi + 0x8ac]
push edi
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
call fcn.0040bb18
mov dword [ebp + 0x78], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x2c], eax
xor eax, eax
mov dword [esi + 0x460], eax
mov dword [esi + 0x464], eax
cmp dword [edi + 4], eax
jne 0x413110
cmp dword [esi + 0x30], eax
jne 0x41346b
push 0x3ff
push eax
mov byte [ebp + 0x84], al
lea eax, [ebp + 0x85]
push eax
call fcn.0045f090
lea eax, [edi + 0xac]
add esp, 0xc
cmp byte [eax + 7], 0xff
jne 0x413139
mov eax, dword [eax]
cmp byte [ebx + 7], 0xff
jne 0x413141
mov ebx, dword [ebx]
lea ecx, [edi + 0x3c]
cmp byte [ecx + 7], 0xff
mov dword [ebp + 0x5c], ecx
jne 0x41314f
mov ecx, dword [ecx]
push eax
push dword [ebp - 0x34]
lea eax, [ebp + 0x84]
push ebx
push ecx
push str.Package_URL___s____s__Status_Code___d__Launch___s
push eax
call fcn.0046018b
add esp, 0x18
lea eax, [ebp + 0x84]
push eax
lea ecx, [ebp + 0x24]
call fcn.0043f7b0
lea eax, [ebp + 0x24]
push eax
call fcn.0040d9ba
pop ecx
lea ecx, [ebp + 0x24]
call fcn.0043f790
xor ebx, ebx
cmp dword [ebp + 0x78], ebx
jl 0x413489
cmp dword [ebp - 0x2c], ebx
je 0x41346b
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 0x1c]
call fcn.0043f6f0
lea eax, [ebp + 0x1c]
lea ebx, [edi + 0x7c]
push eax
mov ecx, ebx
call fcn.0043f840
lea ecx, [ebp + 0x1c]
call fcn.0043f790
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 0x44]
call fcn.0043f6f0
lea eax, [ebp + 0x44]
push eax
lea ecx, [ebp - 0x88]
call fcn.00448800
lea ecx, [ebp + 0x44]
call fcn.0043f790
or dword [ebp + 0x7c], 1
push 0x47f440
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x88]
call fcn.004488b0
push eax
call fcn.00401046
pop ecx
pop ecx
test al, al
jne 0x413232
or dword [ebp + 0x7c], 2
push 0x47f46c
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x88]
call fcn.004488b0
push eax
call fcn.00401046
pop ecx
pop ecx
mov byte [ebp + 0x83], 0
test al, al
je 0x413239
mov byte [ebp + 0x83], 1
test byte [ebp + 0x7c], 2
je 0x41324b
and dword [ebp + 0x7c], 0xfffffffd
lea ecx, [ebp - 0x58]
call fcn.0043f790
test byte [ebp + 0x7c], 1
je 0x41325d
and dword [ebp + 0x7c], 0xfffffffe
lea ecx, [ebp - 0x48]
call fcn.0043f790
cmp byte [ebp + 0x83], 0
je 0x4133ed
lea ecx, [edi + 0x74]
call fcn.00401005
test al, al
jne 0x41351a
lea eax, [esi + 0xa8]
push eax
lea ecx, [ebp + 0x68]
lea ebx, [esi + 4]
call fcn.0043f6f0
cmp byte [ebp + 0x6f], 0xff
lea eax, [ebp + 0x68]
jne 0x413298
mov eax, dword [ebp + 0x68]
mov dword [ebp + 0x78], eax
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 0x54]
call fcn.0043f6f0
cmp byte [ebp + 0x5b], 0xff
lea eax, [ebp + 0x54]
jne 0x4132b3
mov eax, dword [ebp + 0x54]
push dword [ebp + 0x78]
push eax
push ebx
call fcn.0040cbd5
add esp, 0xc
lea ecx, [ebp + 0x54]
mov ebx, eax
call fcn.0043f790
lea ecx, [ebp + 0x68]
call fcn.0043f790
test ebx, ebx
js 0x41351a
lea ecx, [ebp + 0x4c]
call fcn.0043f500
lea eax, [ebp + 0x4c]
push eax
push ecx
push ecx
lea eax, [esi + 0xa8]
mov ecx, esp
push eax
call fcn.0043f6f0
mov ecx, esi
call fcn.0040d04a
lea ecx, [ebp + 0x4c]
call fcn.00401005
lea ecx, [esi + 0x29c]
test al, al
jne 0x413366
call fcn.00401005
test al, al
jne 0x413328
push 0x47ee40
lea ecx, [esi + 0x29c]
call fcn.0043fc10
lea eax, [ebp + 0x4c]
push eax
push str._id
push dword [ebp + 0x5c]
lea eax, [ebp - 0xc]
push eax
call fcn.00440090
add esp, 0xc
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00440040
add esp, 0xc
push eax
lea ecx, [esi + 0x29c]
call fcn.0043fcf0
lea ecx, [ebp - 0x14]
call fcn.0043f790
lea ecx, [ebp - 0xc]
jmp 0x4133a2
call fcn.00401005
test al, al
jne 0x41337f
push 0x47ee40
lea ecx, [esi + 0x29c]
call fcn.0043fc10
push str._id
push dword [ebp + 0x5c]
lea eax, [ebp + 0x60]
push eax
call fcn.00440090
add esp, 0xc
push eax
lea ecx, [esi + 0x29c]
call fcn.0043fcf0
lea ecx, [ebp + 0x60]
call fcn.0043f790
lea eax, [esi + 0xa8]
push eax
lea ecx, [ebp + 0x2c]
call fcn.0043f6f0
lea eax, [edi + 0x74]
push eax
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp + 0x70]
push eax
call fcn.00440040
add esp, 0xc
lea ebx, [edi + 0x7c]
push eax
mov ecx, ebx
call fcn.0043f840
lea ecx, [ebp + 0x70]
call fcn.0043f790
lea ecx, [ebp + 0x2c]
call fcn.0043f790
lea ecx, [ebp + 0x4c]
call fcn.0043f790
mov dword [edi + 0xc], 1
cmp byte [ebx + 7], 0xff
mov eax, ebx
jne 0x4133fe
mov eax, dword [ebx]
push 0
push eax
call fcn.00402e5b
mov dword [edi + 0x24], eax
push str.main
add edi, 0x4c
push edi
call fcn.00401046
add esp, 0x10
test al, al
je 0x413433
mov eax, dword [ebp - 0x30]
push ebx
lea ecx, [esi + 0xb0]
mov dword [esi + 0x298], eax
call fcn.0043f840
lea ecx, [esi + 0x340]
call fcn.00401005
test al, al
jne 0x413452
push 0x47fcc8
lea ecx, [esi + 0x340]
call fcn.0043fc10
push dword [ebp + 0x5c]
lea ecx, [esi + 0x340]
call fcn.0043fcf0
lea ecx, [ebp - 0x88]
call fcn.00448840
lea ecx, [ebp - 4]
call fcn.0040c47b
lea ecx, [ebp - 0x40]
call fcn.0040baf5
mov ecx, esi
call fcn.0040e225
xor ebx, ebx
jmp 0x412faf
cmp dword [esi + 0x34], ebx
jne 0x4134fa
lea ecx, [esi + 0x150]
call fcn.00401005
add edi, 0x3c
push ebx
test al, al
jne 0x4134ae
push str._missing
push edi
push str.actionerrorvaluelocal_
jmp 0x4134c9
cmp dword [ebp + 0x78], 0x800705b4
jne 0x4134be
push 0x480114
jmp 0x4134c3
push str._missing
push edi
push str.actionerrorvalue
lea eax, [ebp + 0x60]
push eax
call fcn.004400e0
add esp, 0xc
push eax
lea eax, [ebp + 0x70]
push eax
call fcn.00440090
add esp, 0xc
push eax
mov ecx, esi
call fcn.00410896
lea ecx, [ebp + 0x70]
call fcn.0043f790
lea ecx, [ebp + 0x60]
call fcn.0043f790
lea ecx, [esi + 0x2c4]
call fcn.0040a9f5
lea ecx, [ebp - 4]
call fcn.0040c47b
lea ecx, [ebp - 0x40]
call fcn.0040baf5
jmp 0x41360c
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 0x68]
call fcn.0043f6f0
cmp byte [ebp + 0x6f], 0xff
lea eax, [ebp + 0x68]
jne 0x413532
mov eax, dword [ebp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp + 0x68]
call fcn.0043f790
lea ecx, [esi + 0x29c]
call fcn.00401005
test al, al
jne 0x413560
push 0x47ee40
lea ecx, [esi + 0x29c]
call fcn.0043fc10
push str._id
add edi, 0x3c
lea eax, [ebp + 0x70]
push edi
push eax
call fcn.00440090
add esp, 0xc
push eax
lea ecx, [esi + 0x29c]
call fcn.0043fcf0
lea ecx, [ebp + 0x70]
call fcn.0043f790
push 0
push str._invalid
push edi
lea eax, [ebp + 0x60]
push str.actionerrorvalue
push eax
call fcn.004400e0
add esp, 0xc
push eax
lea eax, [ebp + 0x70]
push eax
call fcn.00440090
add esp, 0xc
push eax
mov ecx, esi
call fcn.00410896
lea ecx, [ebp + 0x70]
call fcn.0043f790
lea ecx, [ebp + 0x60]
call fcn.0043f790
lea ecx, [esi + 0x2c4]
call fcn.0040a9f5
lea ecx, [ebp - 0x88]
call fcn.00448840
jmp 0x413505
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x34c], eax
jmp 0x4135fb
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0x38], ebx
jne 0x4135f0
cmp dword [esi + 0x34], ebx
jne 0x41360c
mov dword [esi + 0x40], 1
mov ecx, dword [ebp + 0x484]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0045f4ee
add ebp, 0x488
leave
ret