Function at 0x4077f0
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51ae35
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x55e904]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push str.XZCurlDownloader::downloadMemory_start
push 0x93
push str.XZCurlDownloader::downloadMemory
mov dword [ebp - 0x40], eax
call fcn.0042ee30
add esp, 0xc
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
call fcn.004453d0
mov edi, eax
test edi, edi
jne 0x407872
push str.curl_init_error
push 0xcb
push str.XZCurlDownloader::downloadMemory
call fcn.0042ee30
add esp, 0xc
xor al, al
jmp 0x407aed
push 0x407710
push 0x4e2b
push edi
call fcn.004470d0
lea eax, [ebp - 0x34]
push eax
push 0x2711
push edi
call fcn.004470d0
push 1
push 0x34
push edi
call fcn.004470d0
push 0
push 0x40
push edi
call fcn.004470d0
push 0
push 0x51
push edi
call fcn.004470d0
push 1
push 0x4b
push edi
call fcn.004470d0
add esp, 0x48
push str.Content_Type:_application_x_www_form_urlencoded
push 0
call fcn.004456f0
push str.User_Agent:_Mozilla_5.0
push eax
call fcn.004456f0
mov ecx, dword [ebp + 0x10]
add esp, 0x10
mov dword [ebp - 0x38], eax
mov eax, dword [ecx]
mov dword [ebp - 0x3c], eax
mov esi, dword [eax]
cmp esi, eax
je 0x40794a
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408690
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push dword [ebp - 0x38]
call fcn.004456f0
mov edx, dword [ebp - 0x18]
add esp, 8
mov dword [ebp - 0x38], eax
cmp edx, 0x10
jb 0x407941
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407937
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407b0b
push edx
push ecx
call fcn.004ee8e8
add esp, 8
mov eax, dword [esi]
mov esi, eax
cmp eax, dword [ebp - 0x3c]
jne 0x4078e7
push dword [ebp - 0x38]
push 0x2727
push edi
call fcn.004470d0
push 0x1f40
push 0x9c
push edi
call fcn.004470d0
push 0x1f40
push 0x9b
push edi
call fcn.004470d0
push 1
push 0x63
push edi
call fcn.004470d0
add esp, 0x30
cmp dword [ebx + 0x14], 0x10
jb 0x40798d
mov ebx, dword [ebx]
push ebx
push 0x2712
push edi
call fcn.004470d0
push edi
mov dword [ebp - 0x30], 0
call fcn.00445430
add esp, 0x10
test eax, eax
je 0x407ab0
push eax
call fcn.00445fe0
mov edx, eax
mov dword [ebp - 0x58], 0
mov ecx, edx
mov dword [ebp - 0x48], 0
add esp, 4
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
lea esi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4079e0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.00406160
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00432390
add esp, 8
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x407a16
mov eax, dword [eax]
push eax
push str.curl_download_error__s
push 0xf1
push str.XZCurlDownloader::downloadMemory
call fcn.0042ee30
mov edx, dword [ebp - 0x5c]
add esp, 0x10
cmp edx, 8
jb 0x407a68
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407a5e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407b0b
push edx
push ecx
call fcn.004ee8e8
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
cmp edx, 0x10
jb 0x407aac
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407aa2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407b0b
push edx
push ecx
call fcn.004ee8e8
add esp, 8
xor bl, bl
jmp 0x407ada
push dword [ebp - 0x30]
push str.curl_download_sucess__d
push 0xf5
push str.XZCurlDownloader::downloadMemory
call fcn.0042ee30
mov ecx, dword [ebp - 0x40]
add esp, 0x10
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.00406160
mov bl, 1
push dword [ebp - 0x34]
call fcn.004f8e88
push edi
call fcn.004453b0
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ee450
mov esp, ebp
pop ebp
ret 0xc
call fcn.004f8e2c
int3