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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ba80
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
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 - 0x128], edi
mov dword [ebp - 0x10c], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
push 0xc0
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 5
push 0
push eax
call fcn.00489f10
add esp, 8
lea ecx, [ebp - 0x100]
call fcn.0044f4e0
push ecx
push 8
push str._error_log.txt
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 6
call fcn.00452910
test eax, eax
lea ecx, [ebp - 0x100]
mov eax, dword [ebp - 0x100]
mov eax, dword [eax + 4]
jne 0x40d67b
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x40d68a
or eax, 4
jmp 0x40d68a
add ecx, eax
mov edx, 4
xor eax, eax
cmp dword [ecx + 0x38], eax
cmove eax, edx
push 0
push eax
call fcn.00407930
lea ecx, [ebp - 0x28]
call fcn.0040b120
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xf0]
call fcn.00456a00
mov edx, str._set_post_curl_easy_init
mov ecx, eax
call fcn.00456c60
lea edx, [ebp + 8]
mov ecx, eax
call fcn.00456a00
push eax
call fcn.00456f10
add esp, 4
mov byte [ebp - 4], 6
cmp dword [ebp - 0x14], 0x10
jb 0x40d6df
push dword [ebp - 0x28]
call fcn.00485250
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.0040b120
mov edx, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xf0]
call fcn.00456a00
mov edx, str._set_post_curl_easy_init_key
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 byte [ebp - 4], 6
cmp dword [ebp - 0x14], 0x10
jb 0x40d72c
push dword [ebp - 0x28]
call fcn.00485250
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.0040b120
mov edx, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xf0]
call fcn.00456a00
mov edx, str._set_post_curl_easy_init_zapros
mov ecx, eax
call fcn.00456c60
lea edx, [ebp + 0x38]
mov ecx, eax
call fcn.00456a00
push eax
call fcn.00456f10
add esp, 4
mov byte [ebp - 4], 6
cmp dword [ebp - 0x14], 0x10
jb 0x40d779
push dword [ebp - 0x28]
call fcn.00485250
add esp, 4
mov edx, str.set_post_curl_easy_init_txtname
lea ecx, [ebp - 0xf0]
call fcn.00456c60
lea edx, [ebp + 0x50]
mov ecx, eax
call fcn.00456a00
push eax
call fcn.00456f10
mov dword [edi + 0x14], 0xf
add esp, 4
mov dword [edi + 0x10], 0
mov byte [edi], 0
push 1
mov dword [ebp - 0x10c], 1
call fcn.004863cc
add esp, 4
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x104], 0
call dword [sym.imp.libcurl.dll_curl_easy_init]
mov esi, eax
test esi, esi
je 0x40d91f
movdqu xmm0, xmmword [ebp + 8]
mov ebx, dword [sym.imp.libcurl.dll_curl_easy_setopt]
sub esp, 0x18
mov ecx, esp
push 0x2712
movdqu xmmword [ecx], xmm0
push esi
movq xmm0, qword [ebp + 0x18]
movq qword [ecx + 0x10], xmm0
call ebx
push 0x54080c
lea edx, [ebp + 0x20]
lea ecx, [ebp - 0x124]
call fcn.00456910
add esp, 0x24
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 0xa
push ecx
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.00457540
add esp, 4
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x110], 0x10
jb 0x40d84d
push dword [ebp - 0x124]
call fcn.00485250
add esp, 4
movdqu xmm0, xmmword [ebp - 0x28]
sub esp, 0x18
mov dword [ebp - 0x110], 0xf
mov eax, esp
mov dword [ebp - 0x114], 0
mov byte [ebp - 0x124], 0
push 0x271f
movdqu xmmword [eax], xmm0
push esi
movq xmm0, qword [ebp - 0x18]
movq qword [eax + 0x10], xmm0
call ebx
push 0x40d030
push 0x4e2b
push esi
call ebx
add esp, 0x2c
push 0x708
push 0xd
push esi
call ebx
add esp, 0xc
push 1
push 0x2f
push esi
call ebx
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x2711
push esi
call ebx
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 esi
call ebx
add esp, 0xc
push esi
call dword [sym.imp.libcurl.dll_curl_easy_perform]
add esp, 4
test eax, eax
jne 0x40d904
mov edx, dword [ebp - 0x108]
cmp byte [edx], al
jne 0x40d8ed
xor ecx, ecx
jmp 0x40d8fb
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d8f2
sub ecx, ebx
push ecx
push edx
mov ecx, edi
call fcn.004511b0
push esi
call dword [sym.imp.libcurl.dll_curl_easy_cleanup]
add esp, 4
cmp dword [ebp - 0x14], 0x10
jb 0x40d91f
push dword [ebp - 0x28]
call fcn.00485250
add esp, 4
push dword [ebp - 0x108]
call fcn.00486394
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x88]
call fcn.0044f600
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], vtable.std::ios_base.0
push eax
call fcn.0046ca3b
add esp, 4
cmp dword [ebp + 0x1c], 0x10
jb 0x40d966
push dword [ebp + 8]
call fcn.00485250
add esp, 4
cmp dword [ebp + 0x34], 0x10
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
jb 0x40d989
push dword [ebp + 0x20]
call fcn.00485250
add esp, 4
cmp dword [ebp + 0x4c], 0x10
mov dword [ebp + 0x34], 0xf
mov dword [ebp + 0x30], 0
mov byte [ebp + 0x20], 0
jb 0x40d9ac
push dword [ebp + 0x38]
call fcn.00485250
add esp, 4
cmp dword [ebp + 0x64], 0x10
mov dword [ebp + 0x4c], 0xf
mov dword [ebp + 0x48], 0
mov byte [ebp + 0x38], 0
jb 0x40d9cf
push dword [ebp + 0x50]
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