Function at 0x411070
Capabilities:
Download url
Receive data

Disassembly:
sub esp, 0x814
mov eax, dword [0x452504]
push ebx
push ebp
push esi
lea esi, [ecx + 0x56ff]
push edi
push esi
mov dword [esp + 0x824], eax
mov dword [esp + 0x14], ecx
call fcn.0042fed0
mov ebx, dword [esp + 0x834]
mov ebp, dword [esp + 0x83c]
mov edi, dword [esp + 0x830]
add esp, 4
cmp ebp, 3
push ebx
push esi
jne 0x4110bc
push str._s_s_launcher.hul
jmp 0x4110c1
push str._s_s.hul
push edi
call fcn.004352bf
add esp, 0x10
push 0
push edi
call fcn.00435d39
add esp, 8
cmp eax, 0xffffffff
je 0x4110e3
push edi
call fcn.0042fce0
add esp, 4
call fcn.0041a4b0
mov esi, eax
test esi, esi
jne 0x411102
push 0x30003
call fcn.0041a6e0
add esp, 4
xor eax, eax
jmp 0x411398
push 4
lea eax, [esp + 0x1c]
push eax
push 6
push esi
mov dword [esp + 0x28], 0x7530
call dword [sym.imp.WININET.dll_InternetSetOptionA]
cmp ebp, 3
push ebx
jne 0x41113d
mov ebx, dword [esp + 0x14]
lea ecx, [ebx + 0x9b7a]
push ecx
lea edx, [esp + 0x24]
push str._s_newhul__s_launcher.hul
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
jmp 0x41115b
mov eax, dword [esp + 0x14]
add eax, 0x9b7a
push eax
lea ecx, [esp + 0x24]
push str._s_newhul__s.hul
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, dword [esp + 0x20]
add esp, 0x10
push 0
push 0
lea edx, [esp + 0x24]
push edx
push edi
push esi
call fcn.004039f0
add esp, 0x14
test eax, eax
jne 0x411188
push eax
push eax
push edi
lea eax, [esp + 0x28]
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
jl 0x4111f4
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
mov edi, dword [esp + 0x82c]
mov ecx, edi
call fcn.00432290
test eax, eax
jne 0x4111fb
test ebp, ebp
je 0x4111e7
cmp ebp, 2
je 0x4111e7
cmp ebp, 4
je 0x4111e7
cmp ebp, 5
je 0x4111e7
cmp ebp, 6
je 0x4111e7
cmp ebp, 7
je 0x4111e7
cmp ebp, 8
je 0x4111e7
cmp ebp, 9
je 0x4111e7
cmp ebp, 1
je 0x4111d3
cmp ebp, 3
jne 0x4111f4
push 0xe0
call fcn.0041a6e0
add esp, 4
xor eax, eax
jmp 0x411398
push 0xdf
call fcn.0041a6e0
add esp, 4
xor eax, eax
jmp 0x411398
cmp dword [edi + 0x80], 0x10
jb 0x411209
mov edx, dword [edi + 0x6c]
jmp 0x41120c
lea edx, [edi + 0x6c]
mov eax, dword [esp + 0x834]
mov esi, eax
mov cl, byte [edx]
inc edx
mov byte [esi], cl
inc esi
test cl, cl
jne 0x411215
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411222
sub eax, edx
mov dword [esp + 0x14], eax
je 0x41123e
push str.down_url_will_change_to::_cdn_n
call fcn.004301d0
add esp, 4
mov eax, dword [edi + 8]
xor esi, esi
test eax, eax
mov dword [esp + 0x14], esi
jle 0x411393
jmp 0x411258
mov edi, dword [esp + 0x828]
push esi
mov ecx, edi
call fcn.00430c90
mov edi, eax
test edi, edi
je 0x41137c
mov eax, dword [edi + 0x68]
mov ecx, dword [eax]
cmp ecx, eax
mov dword [esp + 0x10], ecx
je 0x41137c
jmp 0x411280
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx + 8]
test esi, esi
je 0x411365
push 0x224
call fcn.0043565d
add esp, 4
test eax, eax
je 0x411365
mov dword [eax], 1
mov edx, dword [esi + 0x68]
mov dword [eax + 8], edx
mov ecx, dword [esi + 0x64]
mov dword [eax + 0x10], ecx
mov edx, dword [esi + 0x6c]
mov dword [eax + 0xc], edx
mov ecx, dword [esi + 0x70]
mov edx, eax
mov dword [eax + 0x14], ecx
sub edx, esi
mov ecx, esi
lea esi, [edx + 0x11d]
mov edi, edi
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x4112d0
mov edx, eax
sub edx, edi
mov ecx, edi
lea esi, [edx + 0x18]
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x4112e3
test ebp, ebp
mov dword [eax + 4], ebp
je 0x411359
cmp ebp, 2
je 0x411359
cmp ebp, 1
je 0x411351
cmp ebp, 3
je 0x411351
cmp ebp, 4
jne 0x411310
lea ecx, [ebx + 0x12bf0]
jmp 0x41135f
cmp ebp, 5
jne 0x41131d
lea ecx, [ebx + 0x12bc8]
jmp 0x41135f
cmp ebp, 6
jne 0x41132a
lea ecx, [ebx + 0x12bdc]
jmp 0x41135f
cmp ebp, 7
jne 0x411337
lea ecx, [ebx + 0x12c04]
jmp 0x41135f
cmp ebp, 8
jne 0x411344
lea ecx, [ebx + 0x12c18]
jmp 0x41135f
cmp ebp, 9
jne 0x411365
lea ecx, [ebx + 0x12c2c]
jmp 0x41135f
lea ecx, [ebx + 0x12bb4]
jmp 0x41135f
lea ecx, [ebx + 0x12ba0]
push eax
call fcn.00430750
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
cmp eax, dword [edi + 0x68]
mov dword [esp + 0x10], eax
jne 0x411280
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x828]
mov eax, dword [ecx + 8]
inc esi
cmp esi, eax
mov dword [esp + 0x14], esi
jl 0x411251
mov eax, 1
mov ecx, dword [esp + 0x820]
pop edi
pop esi
pop ebp
pop ebx
call fcn.00435083
add esp, 0x814
ret 0x14