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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b973
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x55c640]
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 edi, ecx
mov dword [ebp - 0xf4], 0
push 0xc0
lea eax, [ebp - 0xe8]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.00489f10
add esp, 8
lea ecx, [ebp - 0xe8]
call fcn.0044f4e0
push ecx
push 8
push str._error_log.txt
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 2
call fcn.00452910
test eax, eax
lea ecx, [ebp - 0xe8]
mov eax, dword [ebp - 0xe8]
mov eax, dword [eax + 4]
jne 0x40d13f
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x40d14e
or eax, 4
jmp 0x40d14e
add ecx, eax
mov edx, 4
xor eax, eax
cmp dword [ecx + 0x38], eax
cmove eax, edx
push 0
push eax
call fcn.00407930
mov edx, str.get_url_url
lea ecx, [ebp - 0xd8]
call fcn.00456c60
lea edx, [ebp + 8]
mov ecx, eax
call fcn.00456a00
mov edx, str._txtname
mov ecx, eax
call fcn.00456c60
lea edx, [ebp + 0x20]
mov ecx, eax
call fcn.00456a00
push eax
call fcn.00456f10
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
push 1
mov byte [ebp - 4], 3
call fcn.004863cc
add esp, 4
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0xec], 0
call dword [sym.imp.libcurl.dll_curl_easy_init]
mov ebx, eax
test ebx, ebx
je 0x40d2f1
movdqu xmm0, xmmword [ebp + 8]
mov esi, dword [sym.imp.libcurl.dll_curl_easy_setopt]
sub esp, 0x18
mov ecx, esp
push 0x2712
movdqu xmmword [ecx], xmm0
push ebx
movq xmm0, qword [ebp + 0x18]
movq qword [ecx + 0x10], xmm0
call esi
push 0x40d030
push 0x4e2b
push ebx
call esi
add esp, 0x2c
lea eax, [ebp - 0xf0]
push eax
push 0x2711
push ebx
call esi
add esp, 0xc
push str.Mozilla_5.0__Windows__U__Windows_NT_5.1__en_US__rv:1.8.1.1__Gecko_20061204_Firefox_2.0.0.1
push 0x2722
push ebx
call esi
add esp, 0xc
push ebx
call dword [sym.imp.libcurl.dll_curl_easy_perform]
add esp, 4
test eax, eax
je 0x40d2c1
push eax
call dword [sym.imp.libcurl.dll_curl_easy_strerror]
add esp, 4
lea ecx, [ebp - 0xd8]
mov edx, str.get_url_curl_easy_strerror_res_
mov esi, eax
call fcn.00456c60
mov edx, esi
mov ecx, eax
call fcn.00456c60
push eax
call fcn.00456f10
add esp, 4
mov edx, str.get_url__CURLE_OK__datazz
push dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0xd8]
call fcn.00456c60
add esp, 4
mov ecx, eax
call fcn.0044ccc0
push eax
call fcn.00456f10
add esp, 4
push dword [ebp - 0xf0]
call fcn.00486394
add esp, 4
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0044b7a0
cmp dword [ebp - 0x14], 0x10
jb 0x40d386
push dword [ebp - 0x28]
call fcn.00485250
add esp, 4
jmp 0x40d386
mov edx, dword [ebp - 0xf0]
cmp byte [edx], 0
jne 0x40d2d0
xor ecx, ecx
jmp 0x40d2de
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d2d5
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004511b0
push ebx
call dword [sym.imp.libcurl.dll_curl_easy_cleanup]
jmp 0x40d307
mov edx, str.get_url_error_curl_handle
lea ecx, [ebp - 0xd8]
call fcn.00456c60
push eax
call fcn.00456f10
add esp, 4
push dword [ebp - 0xf0]
call fcn.00486394
add esp, 4
mov edx, str.get_url_datazz
push dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0xd8]
call fcn.00456c60
add esp, 4
mov ecx, eax
call fcn.0044ccc0
push eax
call fcn.00456f10
mov dword [edi + 0x14], 0xf
add esp, 4
mov dword [edi + 0x10], 0
mov byte [edi], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jae 0x40d371
mov eax, dword [ebp - 0x18]
inc eax
je 0x40d37d
push eax
lea eax, [ebp - 0x28]
push eax
push edi
call fcn.00485d50
mov ecx, dword [ebp - 0x14]
add esp, 0xc
jmp 0x40d37d
mov eax, dword [ebp - 0x28]
mov dword [edi], eax
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 1
call fcn.0044f600
lea eax, [ebp - 0x70]
mov dword [ebp - 0x70], vtable.std::ios_base.0
push eax
call fcn.0046ca3b
add esp, 4
cmp dword [ebp + 0x1c], 0x10
jb 0x40d3c8
push dword [ebp + 8]
call fcn.00485250
add esp, 4
cmp dword [ebp + 0x34], 0x10
mov byte [ebp + 8], 0
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
jb 0x40d3eb
push dword [ebp + 0x20]
call fcn.00485250
add esp, 4
mov eax, edi
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.00484516
mov esp, ebp
pop ebp
ret