Function at 0x4031f7
Capabilities:
Delete file

Disassembly:
mov eax, 0x432b05
call fcn.0041b53c
sub esp, 0x460
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
xor ebx, ebx
push 0x434a9c
push ebx
mov esi, ecx
mov dword [ebp - 0x18], ebx
mov byte [edi], bl
call fcn.00418606
push dword [ebp + 0xc]
push edi
call fcn.00410a3f
add esp, 0x14
test eax, eax
je 0x40324a
cmp dword [esi + 0x1848], ebx
je 0x403243
cmp dword [ebp - 0x18], 8
jne 0x40324a
xor eax, eax
jmp 0x40350e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 2
jl 0x403266
push edi
call fcn.00410518
pop ecx
test eax, eax
jne 0x403266
push 4
pop edi
jmp 0x40327f
lea eax, [esi + 0x370]
push edi
push eax
mov dword [ebp - 0x14], 2
call fcn.004180f9
mov edi, dword [ebp - 0x14]
pop ecx
pop ecx
cmp dword [ebp - 0x18], edi
je 0x403293
push edi
push 0x434aac
push ebx
call fcn.004173e7
add esp, 0xc
mov dword [ebp + 0xc], ebx
call fcn.004174e5
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0x77
cmp edi, 2
jne 0x403475
cmp eax, ebx
je 0x403355
cmp dword [esi + 0x1848], ebx
jne 0x4032e9
push str.Download_Status:_Bef_Stage1_DL__No_Pre
call fcn.00418c78
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.00418c78
pop ecx
jmp 0x403347
push ebx
lea ecx, [ebp - 0x6c]
call fcn.00402f9b
mov ecx, dword [ebp + 8]
xor eax, eax
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x4c]
push ebx
lea edi, [esi + 0x370]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x58], ecx
call fcn.00410a9c
push str.Download_Status:_Bef_Stage1_PreDL
call fcn.00418c78
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
call fcn.004014f3
push str.Download_Status:_Aft_Stage1_PreDL
mov dword [ebp + 0xc], eax
call fcn.00418c78
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x6c]
call fcn.004030e0
cmp dword [ebp + 0xc], ebx
jge 0x40338c
cmp dword [ebp + 0xc], 0x80070200
jne 0x403387
push str.Using_Sync_download
call fcn.00417b54
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 0x4033f8
push dword [ebp + 8]
push 0x434b68
push ebx
call fcn.00417345
lea eax, [esi + 0x1778]
add esp, 0xc
mov dword [ebp - 0x14], 8
cmp byte [eax], bl
je 0x4033bd
push eax
push dword [ebp + 8]
call fcn.004104e9
pop ecx
pop ecx
test eax, eax
je 0x4033df
push edi
push dword [ebp + 8]
call fcn.004109ed
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x403459
mov dword [ebp - 0x10], 0x88
cmp eax, 0xfffffffc
je 0x4033e6
mov dword [ebp - 0x10], 0x74
push str.Download_Status:_Verification_of_Installer_failed
mov dword [ebp + 0xc], 0x80004005
call fcn.00418c78
pop ecx
call fcn.0041974f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esi + 0x1850], ebx
je 0x403500
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x400
lea eax, [ebp - 0x46c]
push eax
push dword [ebp - 0x10]
push dword [0x4470b0]
call esi
push 0x104
push dword [ebp + 8]
push 0x72
push dword [0x4470b0]
call esi
push 0x10
push dword [ebp + 8]
lea eax, [ebp - 0x46c]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40350b
cmp dword [esi + 0x1848], ebx
je 0x40346d
cmp dword [ebp - 0x1c], ebx
je 0x40346d
mov dword [ebp - 0x14], 4
cmp dword [ebp + 0xc], ebx
jl 0x4033f8
mov edi, dword [ebp - 0x14]
cmp edi, 4
jne 0x4034db
push str.Download_Status:_Bef_Stage2_PreDL
call fcn.00418c78
push edi
push 0x434bd0
push ebx
call fcn.004173e7
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 - 0x10], 0x77
call fcn.00402995
test eax, eax
jne 0x4034d4
mov dword [ebp + 0xc], ebx
jmp 0x4034e4
mov dword [ebp + 0xc], 0x80004005
cmp dword [ebp + 0xc], ebx
jl 0x4033f8
push 8
push 0x434bf8
push ebx
call fcn.004173e7
push str.Download_Status:_Stage2_PreDL_Success
call fcn.00418c78
add esp, 0x10
jmp 0x40350b
push str.Download_Status:_Stage2_PreDL_Failed
call fcn.00418c78
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