Function at 0x404f28
Capabilities:
Delete file

Disassembly:
mov eax, 0x41e09b
call fcn.00412bc0
sub esp, 0x460
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
xor ebx, ebx
push 0x41fab8
push ebx
mov esi, ecx
mov dword [ebp - 0x18], ebx
mov byte [edi], bl
call fcn.0040b31f
push dword [ebp + 0xc]
push edi
call fcn.0040de72
add esp, 0x14
test eax, eax
je 0x404f7b
cmp dword [esi + 0x1948], ebx
je 0x404f74
cmp dword [ebp - 0x18], 8
jne 0x404f7b
xor eax, eax
jmp 0x405241
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 2
jl 0x404f97
push edi
call fcn.0040db40
test eax, eax
pop ecx
jne 0x404f97
push 4
pop edi
jmp 0x404fb0
lea eax, [esi + 0x370]
push edi
push eax
mov dword [ebp - 0x10], 2
call fcn.0040c0ee
mov edi, dword [ebp - 0x10]
pop ecx
pop ecx
cmp dword [ebp - 0x18], edi
je 0x404fc4
push edi
push 0x41fac8
push ebx
call fcn.0040c47b
add esp, 0xc
mov dword [ebp + 0xc], ebx
call fcn.0040b464
cmp edi, 2
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0x77
jne 0x4051a8
cmp eax, ebx
je 0x405088
cmp dword [esi + 0x1948], ebx
jne 0x40501a
push str.Download_Status:_Bef_Stage1_DL__No_Pre
call fcn.0040c4df
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.0040c4df
pop ecx
jmp 0x40507a
push ebx
lea ecx, [ebp - 0x6c]
call fcn.00404e98
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.00403fd3
push str.Download_Status:_Bef_Stage1_PreDL
call fcn.0040c4df
pop ecx
lea eax, [ebp - 0x6c]
push eax
call fcn.0040fcd6
push str.Download_Status:_Aft_Stage1_PreDL
mov dword [ebp + 0xc], eax
call fcn.0040c4df
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x6c]
call fcn.00404ebd
cmp dword [ebp + 0xc], ebx
jge 0x4050bf
cmp dword [ebp + 0xc], 0x80070200
jne 0x4050ba
push str.Using_Sync_download
call fcn.0040bc17
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 0x40512b
push dword [ebp + 8]
push 0x41fb84
push ebx
call fcn.0040c3d9
lea eax, [esi + 0x1878]
add esp, 0xc
cmp byte [eax], bl
mov dword [ebp - 0x10], 8
je 0x4050f0
push eax
push dword [ebp + 8]
call fcn.0040db11
test eax, eax
pop ecx
pop ecx
je 0x405112
push edi
push dword [ebp + 8]
call fcn.0040e02e
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
je 0x40518c
cmp eax, 0xfffffffc
mov dword [ebp - 0x14], 0x88
je 0x405119
mov dword [ebp - 0x14], 0x74
push str.Download_Status:_Verification_of_Installer_failed
mov dword [ebp + 0xc], 0x80004005
call fcn.0040c4df
pop ecx
call fcn.0040cb74
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esi + 0x1950], ebx
je 0x405233
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x400
lea eax, [ebp - 0x46c]
push eax
push dword [ebp - 0x14]
push dword [0x4288b4]
call esi
push 0x104
push dword [ebp + 8]
push 0x72
push dword [0x4288b4]
call esi
push 0x10
push dword [ebp + 8]
lea eax, [ebp - 0x46c]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40523e
cmp dword [esi + 0x1948], ebx
je 0x4051a0
cmp dword [ebp - 0x1c], ebx
je 0x4051a0
mov dword [ebp - 0x10], 4
cmp dword [ebp + 0xc], ebx
jl 0x40512b
mov edi, dword [ebp - 0x10]
cmp edi, 4
jne 0x40520e
push str.Download_Status:_Bef_Stage2_PreDL
call fcn.0040c4df
push edi
push 0x41fbec
push ebx
call fcn.0040c47b
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.00404e02
test eax, eax
jne 0x405207
mov dword [ebp + 0xc], ebx
jmp 0x405217
mov dword [ebp + 0xc], 0x80004005
cmp dword [ebp + 0xc], ebx
jl 0x40512b
push 8
push 0x41fc14
push ebx
call fcn.0040c47b
push str.Download_Status:_Stage2_PreDL_Success
call fcn.0040c4df
add esp, 0x10
jmp 0x40523e
push str.Download_Status:_Stage2_PreDL_Failed
call fcn.0040c4df
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