Function at 0x40527e
Capabilities:
Delete file

Disassembly:
mov eax, 0x41edbb
call fcn.00413708
sub esp, 0x460
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
xor ebx, ebx
push 0x420ce4
push ebx
mov esi, ecx
mov dword [ebp - 0x18], ebx
mov byte [edi], bl
call fcn.0040c895
push dword [ebp + 0xc]
push edi
call fcn.0040e640
add esp, 0x14
test eax, eax
je 0x4052d1
cmp dword [esi + 0x1948], ebx
je 0x4052ca
cmp dword [ebp - 0x18], 8
jne 0x4052d1
xor eax, eax
jmp 0x405597
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 2
jl 0x4052ed
push edi
call fcn.0040e30e
test eax, eax
pop ecx
jne 0x4052ed
push 4
pop edi
jmp 0x405306
lea eax, [esi + 0x370]
push edi
push eax
mov dword [ebp - 0x10], 2
call fcn.0040c4b5
mov edi, dword [ebp - 0x10]
pop ecx
pop ecx
cmp dword [ebp - 0x18], edi
je 0x40531a
push edi
push 0x420cf4
push ebx
call fcn.0040b72d
add esp, 0xc
mov dword [ebp + 0xc], ebx
call fcn.0040b8c6
cmp edi, 2
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0x77
jne 0x4054fe
cmp eax, ebx
je 0x4053de
cmp dword [esi + 0x1948], ebx
jne 0x405370
push str.Download_Status:_Bef_Stage1_DL__No_Pre
call fcn.0040cba8
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.0040cba8
pop ecx
jmp 0x4053d0
push ebx
lea ecx, [ebp - 0x6c]
call fcn.004051ee
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.00404107
push str.Download_Status:_Bef_Stage1_PreDL
call fcn.0040cba8
pop ecx
lea eax, [ebp - 0x6c]
push eax
call fcn.00410614
push str.Download_Status:_Aft_Stage1_PreDL
mov dword [ebp + 0xc], eax
call fcn.0040cba8
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x6c]
call fcn.00405213
cmp dword [ebp + 0xc], ebx
jge 0x405415
cmp dword [ebp + 0xc], 0x80070200
jne 0x405410
push str.Using_Sync_download
call fcn.0040bfde
mov eax, dword [esi]
pop ecx
xor ecx, ecx
cmp dword [esi + 0x1948], 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 + 0x1948], ebx
cmp dword [ebp + 0xc], ebx
jl 0x405481
push dword [ebp + 8]
push 0x420db0
push ebx
call fcn.0040ca3c
lea eax, [esi + 0x1878]
add esp, 0xc
cmp byte [eax], bl
mov dword [ebp - 0x10], 8
je 0x405446
push eax
push dword [ebp + 8]
call fcn.0040e2df
test eax, eax
pop ecx
pop ecx
je 0x405468
push edi
push dword [ebp + 8]
call fcn.0040e7fc
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
je 0x4054e2
cmp eax, 0xfffffffc
mov dword [ebp - 0x14], 0x88
je 0x40546f
mov dword [ebp - 0x14], 0x74
push str.Download_Status:_Verification_of_Installer_failed
mov dword [ebp + 0xc], 0x80004005
call fcn.0040cba8
pop ecx
call fcn.0040d2e9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esi + 0x1950], ebx
je 0x405589
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 0x405594
cmp dword [esi + 0x1948], ebx
je 0x4054f6
cmp dword [ebp - 0x1c], ebx
je 0x4054f6
mov dword [ebp - 0x10], 4
cmp dword [ebp + 0xc], ebx
jl 0x405481
mov edi, dword [ebp - 0x10]
cmp edi, 4
jne 0x405564
push str.Download_Status:_Bef_Stage2_PreDL
call fcn.0040cba8
push edi
push 0x420e18
push ebx
call fcn.0040b72d
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.0040514b
test eax, eax
jne 0x40555d
mov dword [ebp + 0xc], ebx
jmp 0x40556d
mov dword [ebp + 0xc], 0x80004005
cmp dword [ebp + 0xc], ebx
jl 0x405481
push 8
push 0x420e40
push ebx
call fcn.0040b72d
push str.Download_Status:_Stage2_PreDL_Success
call fcn.0040cba8
add esp, 0x10
jmp 0x405594
push str.Download_Status:_Stage2_PreDL_Failed
call fcn.0040cba8
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