Function at 0x40332d
Capabilities:
Delete file

Disassembly:
mov eax, 0x433205
call fcn.0041bbcc
sub esp, 0x860
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
xor ebx, ebx
push 0x434b9c
push ebx
mov esi, ecx
mov dword [ebp - 0x18], ebx
mov byte [edi], bl
call fcn.00418843
push dword [ebp + 0xc]
push edi
call fcn.00410c91
add esp, 0x14
test eax, eax
je 0x403380
cmp dword [esi + 0x1878], ebx
je 0x403379
cmp dword [ebp - 0x18], 8
jne 0x403380
xor eax, eax
jmp 0x4036ae
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 2
jl 0x4033a0
push edi
call fcn.0041076a
pop ecx
test eax, eax
jne 0x4033a0
mov dword [ebp - 0x10], 4
jmp 0x4033b6
lea eax, [esi + 0x370]
push edi
push eax
mov dword [ebp - 0x10], 2
call fcn.00418336
pop ecx
pop ecx
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x18], eax
je 0x4033cd
push eax
push 0x434bac
push ebx
call fcn.00417639
add esp, 0xc
mov dword [ebp + 0xc], ebx
call fcn.00417737
mov edi, 0x3ff
push edi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x46b]
push ebx
push eax
mov byte [ebp - 0x46c], bl
call fcn.0041b5c0
push edi
lea eax, [ebp - 0x86b]
push ebx
push eax
mov byte [ebp - 0x86c], bl
call fcn.0041b5c0
add esp, 0x18
cmp dword [ebp - 0x10], 2
mov dword [ebp - 0x14], 0x77
jne 0x4035e6
cmp dword [ebp - 0x1c], ebx
je 0x4034c1
cmp dword [esi + 0x1878], ebx
jne 0x403455
push str.Download_Status:_Bef_Stage1_DL__No_Pre
call fcn.0041904c
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.0041904c
pop ecx
jmp 0x4034b3
push ebx
lea ecx, [ebp - 0x6c]
call fcn.004030d1
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.00410cee
push str.Download_Status:_Bef_Stage1_PreDL
call fcn.0041904c
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
call fcn.004015cd
push str.Download_Status:_Aft_Stage1_PreDL
mov dword [ebp + 0xc], eax
call fcn.0041904c
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x6c]
call fcn.00403216
cmp dword [ebp + 0xc], ebx
jge 0x4034f8
cmp dword [ebp + 0xc], 0x80070200
jne 0x4034f3
push str.Using_Sync_download
call fcn.00417d91
mov eax, dword [esi]
pop ecx
xor ecx, ecx
cmp dword [esi + 0x1878], 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 + 0x1878], ebx
cmp dword [ebp + 0xc], ebx
jl 0x40356c
push dword [ebp + 8]
push 0x434c68
push ebx
call fcn.00417597
lea eax, [esi + 0x1778]
add esp, 0xc
mov dword [ebp - 0x10], 8
cmp byte [eax], bl
je 0x403531
push 0x20
push 0x800c
push eax
push dword [ebp + 8]
call fcn.0041071c
add esp, 0x10
test eax, eax
je 0x403553
push edi
push dword [ebp + 8]
call fcn.00410c3f
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x4035cd
mov dword [ebp - 0x14], 0x88
cmp eax, 0xfffffffc
je 0x40355a
mov dword [ebp - 0x14], 0x74
push str.Download_Status:_Verification_of_Installer_failed
mov dword [ebp + 0xc], 0x80004005
call fcn.0041904c
pop ecx
call fcn.00419d01
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esi + 0x1880], ebx
je 0x4036a0
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x400
lea eax, [ebp - 0x46c]
push eax
push dword [ebp - 0x14]
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 0x4036ab
cmp dword [esi + 0x1878], ebx
je 0x4035e1
cmp dword [ebp - 0x1c], ebx
je 0x4035e1
mov dword [ebp - 0x10], 4
cmp dword [ebp + 0xc], ebx
jl 0x40356c
cmp dword [ebp - 0x10], 4
jne 0x40367b
push str.Download_Status:_Bef_Stage2_PreDL
call fcn.0041904c
push 4
push 0x434cd0
push ebx
call fcn.00417639
push dword [ebp + 8]
mov edi, 0x400
push 0x434ce0
push 0xffffffffffffffff
lea eax, [ebp - 0x86c]
push edi
push eax
call fcn.0041b6dc
lea eax, [esi + 0xbf0]
push eax
push str.__download
lea eax, [ebp - 0x86c]
push eax
push str.__s___s__s
push 0xffffffffffffffff
lea eax, [ebp - 0x46c]
push edi
push eax
call fcn.0041b6dc
add esp, 0x40
push 1
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x86c]
push eax
mov ecx, esi
mov dword [ebp - 0x14], 0x77
call fcn.00402a6d
test eax, eax
jne 0x403674
mov dword [ebp + 0xc], ebx
jmp 0x403684
mov dword [ebp + 0xc], 0x80004005
cmp dword [ebp + 0xc], ebx
jl 0x40356c
push 8
push 0x434cfc
push ebx
call fcn.00417639
push str.Download_Status:_Stage2_PreDL_Success
call fcn.0041904c
add esp, 0x10
jmp 0x4036ab
push str.Download_Status:_Stage2_PreDL_Failed
call fcn.0041904c
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