Function at 0x4052d1
Capabilities:
Delete file

Disassembly:
mov eax, 0x41f05b
call fcn.0041384c
sub esp, 0x460
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
xor ebx, ebx
push 0x420cfc
push ebx
mov esi, ecx
mov dword [ebp - 0x18], ebx
mov byte [edi], bl
call fcn.0040c945
push dword [ebp + 0xc]
push edi
call fcn.0040e778
add esp, 0x14
test eax, eax
je 0x405324
cmp dword [esi + 0x1848], ebx
je 0x40531d
cmp dword [ebp - 0x18], 8
jne 0x405324
xor eax, eax
jmp 0x4055ea
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 2
jl 0x405340
push edi
call fcn.0040e446
test eax, eax
pop ecx
jne 0x405340
push 4
pop edi
jmp 0x405359
lea eax, [esi + 0x370]
push edi
push eax
mov dword [ebp - 0x10], 2
call fcn.0040c530
mov edi, dword [ebp - 0x10]
pop ecx
pop ecx
cmp dword [ebp - 0x18], edi
je 0x40536d
push edi
push 0x420d0c
push ebx
call fcn.0040b78b
add esp, 0xc
mov dword [ebp + 0xc], ebx
call fcn.0040b924
cmp edi, 2
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0x77
jne 0x405551
cmp eax, ebx
je 0x405431
cmp dword [esi + 0x1848], ebx
jne 0x4053c3
push str.Download_Status:_Bef_Stage1_DL__No_Pre
call fcn.0040cc59
mov eax, dword [esi]
pop ecx
push dword [ebp + 8]
lea edi, [esi + 0x370]
push edi
push esi
call dword [eax + 0x14]
push str.Download_Status:_Aft_Stage1_DL__No_Pre
mov dword [ebp + 0xc], eax
call fcn.0040cc59
pop ecx
jmp 0x405423
push ebx
lea ecx, [ebp - 0x6c]
call fcn.00405241
mov ecx, dword [ebp + 8]
mov dword [ebp + 0xc], ecx
lea ecx, [ebp + 0xc]
push ecx
xor eax, eax
lea ecx, [ebp - 0x10]
inc eax
push ecx
lea edi, [esi + 0x370]
push eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], edi
call fcn.00404145
push str.Download_Status:_Bef_Stage1_PreDL
call fcn.0040cc59
pop ecx
lea eax, [ebp - 0x6c]
push eax
call fcn.00410755
push str.Download_Status:_Aft_Stage1_PreDL
mov dword [ebp + 0xc], eax
call fcn.0040cc59
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x6c]
call fcn.00405266
cmp dword [ebp + 0xc], ebx
jge 0x405468
cmp dword [ebp + 0xc], 0x80070200
jne 0x405463
push str.Using_Sync_download
call fcn.0040c059
mov eax, dword [esi]
pop ecx
xor ecx, ecx
cmp dword [esi + 0x1848], ebx
lea edi, [esi + 0x370]
sete cl
push ecx
push 1
push dword [ebp + 8]
push edi
push esi
call dword [eax + 0x1c]
mov dword [ebp + 0xc], eax
mov dword [esi + 0x1848], ebx
cmp dword [ebp + 0xc], ebx
jl 0x4054d4
push dword [ebp + 8]
push 0x420dc8
push ebx
call fcn.0040caec
lea eax, [esi + 0x1778]
add esp, 0xc
cmp byte [eax], bl
mov dword [ebp - 0x10], 8
je 0x405499
push eax
push dword [ebp + 8]
call fcn.0040e417
test eax, eax
pop ecx
pop ecx
je 0x4054bb
push edi
push dword [ebp + 8]
call fcn.0040e934
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
je 0x405535
cmp eax, 0xfffffffc
mov dword [ebp - 0x14], 0x88
je 0x4054c2
mov dword [ebp - 0x14], 0x74
push str.Download_Status:_Verification_of_Installer_failed
mov dword [ebp + 0xc], 0x80004005
call fcn.0040cc59
pop ecx
call fcn.0040d39a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esi + 0x1850], ebx
je 0x4055dc
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x400
lea eax, [ebp - 0x46c]
push eax
push dword [ebp - 0x14]
push dword [0x4298c0]
call esi
push 0x104
push dword [ebp + 8]
push 0x72
push dword [0x4298c0]
call esi
push 0x10
push dword [ebp + 8]
lea eax, [ebp - 0x46c]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4055e7
cmp dword [esi + 0x1848], ebx
je 0x405549
cmp dword [ebp - 0x1c], ebx
je 0x405549
mov dword [ebp - 0x10], 4
cmp dword [ebp + 0xc], ebx
jl 0x4054d4
mov edi, dword [ebp - 0x10]
cmp edi, 4
jne 0x4055b7
push str.Download_Status:_Bef_Stage2_PreDL
call fcn.0040cc59
push edi
push 0x420e30
push ebx
call fcn.0040b78b
lea eax, [esi + 0xbf0]
push eax
push str.__download
push dword [ebp + 8]
lea eax, [ebp - 0x46c]
push str.__s___s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
push 1
lea eax, [ebp - 0x46c]
push eax
mov ecx, esi
mov dword [ebp - 0x14], 0x77
call fcn.004051ab
test eax, eax
jne 0x4055b0
mov dword [ebp + 0xc], ebx
jmp 0x4055c0
mov dword [ebp + 0xc], 0x80004005
cmp dword [ebp + 0xc], ebx
jl 0x4054d4
push 8
push 0x420e58
push ebx
call fcn.0040b78b
push str.Download_Status:_Stage2_PreDL_Success
call fcn.0040cc59
add esp, 0x10
jmp 0x4055e7
push str.Download_Status:_Stage2_PreDL_Failed
call fcn.0040cc59
pop ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8