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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b02a0
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x4e143c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0xc]
push str.XZCurlDownloader::postRequest_start
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x10]
push 0x100
push str.XZCurlDownloader::postRequest
mov dword [ebp - 0x58], eax
call fcn.00429810
add esp, 0xc
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
call dword [sym.imp.libcurl.dll_curl_easy_init]
mov edi, eax
test edi, edi
jne 0x4056df
push str.curl_init_error
push 0x10a
push str.XZCurlDownloader::postRequest
call fcn.00429810
add esp, 0xc
xor al, al
jmp 0x4059a8
mov ebx, dword [sym.imp.libcurl.dll_curl_easy_setopt]
push 0x4052c0
push 0x4e2b
push edi
call ebx
lea eax, [ebp - 0x48]
push eax
push 0x2711
push edi
call ebx
push 1
push 0x34
push edi
call ebx
push 0
push 0x40
push edi
call ebx
push 0
push 0x51
push edi
call ebx
push 1
push 0x4b
push edi
call ebx
mov esi, dword [sym.imp.libcurl.dll_curl_slist_append]
add esp, 0x48
push str.Content_Type:application_json_charsetUTF_8
push 0
call esi
push str.User_Agent:_Mozilla_5.0
push eax
call esi
mov ecx, dword [ebp + 0x14]
add esp, 0x10
mov dword [ebp - 0x4c], eax
mov eax, dword [ecx]
mov dword [ebp - 0x50], eax
mov esi, dword [eax]
cmp esi, eax
je 0x4057ac
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x40]
call fcn.004061d0
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.libcurl.dll_curl_slist_append]
mov edx, dword [ebp - 0x2c]
add esp, 8
mov dword [ebp - 0x4c], eax
cmp edx, 0x10
jb 0x4057a3
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405799
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4059c6
push edx
push ecx
call fcn.0048bac4
add esp, 8
mov eax, dword [esi]
mov esi, eax
cmp eax, dword [ebp - 0x50]
jne 0x405748
push dword [ebp - 0x4c]
push 0x2727
push edi
call ebx
push 1
push 0x2f
push edi
call ebx
push dword [ebp - 0x54]
lea eax, [ebp - 0x28]
push eax
call fcn.0042c020
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
push eax
push 0x271f
push edi
call ebx
push dword [ebp - 0x18]
push 0x3c
push edi
call ebx
push 0x1f40
push 0x9c
push edi
call ebx
add esp, 0x44
push 1
push 0x63
push edi
call ebx
mov eax, dword [ebp - 0x58]
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x405812
mov eax, dword [eax]
push eax
push 0x2712
push edi
call ebx
push edi
mov dword [ebp - 0x44], 0
call dword [sym.imp.libcurl.dll_curl_easy_perform]
add esp, 0x10
test eax, eax
je 0x40593a
push eax
call dword [sym.imp.libcurl.dll_curl_easy_strerror]
mov edx, eax
mov dword [ebp - 0x74], 0
mov ecx, edx
mov dword [ebp - 0x64], 0
add esp, 4
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405860
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x74]
call fcn.00404090
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.0042bf60
add esp, 8
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x405896
mov eax, dword [eax]
push eax
push str.curl_download_error__s
push pe_nt_image_headers32
push str.XZCurlDownloader::postRequest
call fcn.00429810
mov edx, dword [ebp - 0x78]
add esp, 0x10
cmp edx, 8
jb 0x4058eb
mov ecx, dword [ebp - 0x8c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4058e1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4059c6
push edx
push ecx
call fcn.0048bac4
add esp, 8
mov edx, dword [ebp - 0x60]
xor eax, eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
cmp edx, 0x10
jb 0x405936
mov ecx, dword [ebp - 0x74]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40592c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4059c6
push edx
push ecx
call fcn.0048bac4
add esp, 8
xor bl, bl
jmp 0x405964
push dword [ebp - 0x44]
push str.curl_download_sucess__d
push 0x13c
push str.XZCurlDownloader::postRequest
call fcn.00429810
mov ecx, dword [ebp - 0x5c]
add esp, 0x10
push dword [ebp - 0x44]
push dword [ebp - 0x48]
call fcn.00404090
mov bl, 1
push dword [ebp - 0x48]
call fcn.00495347
push edi
call dword [sym.imp.libcurl.dll_curl_easy_cleanup]
mov edx, dword [ebp - 0x14]
add esp, 8
cmp edx, 0x10
jb 0x4059a6
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40599c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4059cb
push edx
push ecx
call fcn.0048bac4
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 - 0x10]
xor ecx, ebp
call fcn.0048b62c
mov esp, ebp
pop ebp
ret 0x10
call fcn.004952eb
call fcn.004952eb
int3