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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42492a
mov eax, dword fs:[0]
push eax
sub esp, 0x38c
mov eax, dword [0x430510]
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 ebx, dword [ebp + 8]
mov dword [ebp - 0x394], ebx
xor edi, edi
mov dword [ebp - 4], edi
mov eax, 0xf
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x14], edi
mov byte [ebx + 4], 0
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x30], edi
mov byte [ebx + 0x20], 0
mov eax, 7
xor ecx, ecx
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x4c], edi
mov word [ebx + 0x3c], cx
xor edx, edx
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x68], edi
mov word [ebx + 0x58], dx
lea esi, [ebx + 0x74]
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], edi
mov word [esi], cx
mov dword [ebx + 0xa4], eax
mov dword [ebx + 0xa0], edi
mov word [ebx + 0x90], dx
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp + 0x1c]
mov dword [ebx], edi
mov dword [ebx + 0xac], edi
cmp ecx, edi
jbe 0x40be97
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0xc]
cmp edx, 8
jae 0x40b996
lea eax, [ebp + 0xc]
lea eax, [eax + ecx*2]
mov ecx, dword [ebp + 0xc]
cmp edx, 8
jae 0x40b9a4
lea ecx, [ebp + 0xc]
mov edx, dword [ebp - 0x394]
push edx
push eax
push ecx
lea eax, [ebp - 0x290]
push eax
mov dword [ebp - 0x27c], 0xf
mov dword [ebp - 0x280], edi
mov byte [ebp - 0x290], 0
call fcn.0040af30
push 0x208
lea edx, [ebp - 0x21e]
xor ecx, ecx
push edi
mov byte [ebp - 4], 0xb
push edx
mov word [ebp - 0x220], cx
call fcn.0041a000
add esp, 0xc
lea edx, [ebp - 0x290]
mov ecx, ebx
mov dword [ebp - 0x390], 0x105
call fcn.0040b6c0
test al, al
je 0x40bdb9
push 0x91
mov eax, str.User_Agent:_Mozilla_5.0__compatible__MSIE_8.0__Windows_NT_5.1__Trident_4.0__SLCC1__.NET_CLR_3.0.4506.2152__.NET_CLR_3.5.30729__.NET_CLR_1.1.4322_
call fcn.00409a60
mov eax, dword [ebp + 0xc]
mov esi, 8
cmp dword [ebp + 0x20], esi
jae 0x40ba30
lea eax, [ebp + 0xc]
push edi
push 2
lea ecx, [ebp - 0x390]
push ecx
lea edx, [ebp - 0x220]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_UrlGetPartW]
test eax, eax
jne 0x40bdbe
mov eax, str.http:__
lea ecx, [ebp - 0x2ac]
call fcn.004072c0
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 0xc
call fcn.004072c0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x29c]
push edi
push eax
lea eax, [ebp + 0xc]
call fcn.0040c870
mov ecx, dword [ebp - 0x248]
push edi
push ecx
lea eax, [ebp + 0xc]
call fcn.0040c870
lea edx, [ebp - 0x258]
push edx
lea eax, [ebp - 0x274]
push str.Host:
push eax
call fcn.0040cd80
add esp, 0xc
push eax
mov edx, str._r_nConnection:_close
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 0xe
call fcn.0040ce60
add esp, 4
mov edi, eax
lea esi, [ebx + 0x3c]
mov byte [ebp - 4], 0xf
call fcn.00408ff0
mov esi, 8
cmp dword [ebp - 0x228], esi
jb 0x40baf6
mov ecx, dword [ebp - 0x23c]
push ecx
call fcn.004140b8
add esp, 4
xor edx, edx
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x228], 7
mov dword [ebp - 0x22c], 0
mov word [ebp - 0x23c], dx
cmp dword [ebp - 0x260], esi
jb 0x40bb2e
mov eax, dword [ebp - 0x274]
push eax
call fcn.004140b8
add esp, 4
cmp dword [ebp + 0x38], 0
jbe 0x40bcd3
cmp dword [ebp + 0x54], 0
jbe 0x40bcd3
cmp dword [ebp + 0x70], 0
jbe 0x40bcd3
cmp dword [ebp + 0x8c], 0
jbe 0x40bcd3
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp - 0x370]
push str.GET
push edx
call fcn.0040cd80
add esp, 0xc
push eax
mov edx, str._ID
lea eax, [ebp - 0x38c]
mov byte [ebp - 4], 0x10
call fcn.0040ce60
add esp, 4
mov ecx, eax
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp + 0x28]
mov byte [ebp - 4], 0x11
call fcn.0040a680
add esp, 4
push eax
mov edx, str.Misc
lea eax, [ebp - 0x2e4]
mov byte [ebp - 4], 0x12
call fcn.0040ce60
add esp, 4
mov ecx, eax
lea edx, [ebp - 0x300]
push edx
lea eax, [ebp + 0x44]
mov byte [ebp - 4], 0x13
call fcn.0040a680
add esp, 4
push eax
mov edx, str.Sum
lea eax, [ebp - 0x338]
mov byte [ebp - 4], 0x14
call fcn.0040ce60
add esp, 4
mov ecx, eax
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp + 0x60]
mov byte [ebp - 4], 0x15
call fcn.0040a680
add esp, 4
push eax
mov edx, str.Total
lea eax, [ebp - 0x2c8]
mov byte [ebp - 4], 0x16
call fcn.0040ce60
add esp, 4
mov ecx, eax
lea edx, [ebp - 0x23c]
push edx
lea eax, [ebp + 0x7c]
mov byte [ebp - 4], 0x17
call fcn.0040a680
add esp, 4
push eax
mov edx, str._HTTP_1.1
lea eax, [ebp - 0x274]
mov byte [ebp - 4], 0x18
call fcn.0040ce60
add esp, 4
mov edi, eax
lea esi, [ebx + 0x58]
mov byte [ebp - 4], 0x19
call fcn.00408ff0
lea esi, [ebp - 0x274]
call fcn.00407300
lea esi, [ebp - 0x23c]
call fcn.00407300
lea esi, [ebp - 0x2c8]
call fcn.00407300
lea esi, [ebp - 0x31c]
call fcn.00407300
lea esi, [ebp - 0x338]
call fcn.00407300
lea esi, [ebp - 0x300]
call fcn.00407300
lea esi, [ebp - 0x2e4]
call fcn.00407300
lea esi, [ebp - 0x354]
call fcn.00407300
lea esi, [ebp - 0x38c]
call fcn.00407300
lea esi, [ebp - 0x370]
mov byte [ebp - 4], 0xd
call fcn.00407300
mov esi, 8
jmp 0x40bd65
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x274]
push str.GET
push ecx
call fcn.0040cd80
add esp, 0xc
push eax
mov edx, str._HTTP_1.1
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 0x1a
call fcn.0040ce60
add esp, 4
mov edi, eax
lea esi, [ebx + 0x58]
mov byte [ebp - 4], 0x1b
call fcn.00408ff0
mov esi, 8
cmp dword [ebp - 0x228], esi
jb 0x40bd2d
mov edx, dword [ebp - 0x23c]
push edx
call fcn.004140b8
add esp, 4
xor eax, eax
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x228], 7
mov dword [ebp - 0x22c], 0
mov word [ebp - 0x23c], ax
cmp dword [ebp - 0x260], esi
jb 0x40bd65
mov ecx, dword [ebp - 0x274]
push ecx
call fcn.004140b8
add esp, 4
mov ecx, ebx
call fcn.0040c150
cmp dword [ebp - 0x244], esi
jb 0x40bd83
mov edx, dword [ebp - 0x258]
push edx
call fcn.004140b8
add esp, 4
xor eax, eax
mov dword [ebp - 0x244], 7
mov dword [ebp - 0x248], 0
mov word [ebp - 0x258], ax
cmp dword [ebp - 0x298], esi
jb 0x40bdb7
mov ecx, dword [ebp - 0x2ac]
push ecx
call fcn.004140b8
add esp, 4
xor edi, edi
mov esi, 8
cmp dword [ebp - 0x27c], 0x10
jb 0x40bdd6
mov edx, dword [ebp - 0x290]
push edx
call fcn.004140b8
add esp, 4
mov eax, 7
cmp dword [ebp + 0x20], esi
jb 0x40bdf1
mov eax, dword [ebp + 0xc]
push eax
call fcn.004140b8
add esp, 4
mov eax, 7
xor ecx, ecx
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x1c], edi
mov word [ebp + 0xc], cx
cmp dword [ebp + 0x3c], esi
jb 0x40be13
mov edx, dword [ebp + 0x28]
push edx
call fcn.004140b8
add esp, 4
mov eax, 7
xor ecx, ecx
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x38], edi
mov word [ebp + 0x28], cx
cmp dword [ebp + 0x58], esi
jb 0x40be35
mov edx, dword [ebp + 0x44]
push edx
call fcn.004140b8
add esp, 4
mov eax, 7
xor ecx, ecx
mov dword [ebp + 0x58], eax
mov dword [ebp + 0x54], edi
mov word [ebp + 0x44], cx
cmp dword [ebp + 0x74], esi
jb 0x40be57
mov edx, dword [ebp + 0x60]
push edx
call fcn.004140b8
add esp, 4
mov eax, 7
mov dword [ebp + 0x74], eax
xor eax, eax
mov dword [ebp + 0x70], edi
mov word [ebp + 0x60], ax
cmp dword [ebp + 0x90], esi
jb 0x40be77
mov ecx, dword [ebp + 0x7c]
push ecx
call fcn.004140b8
add esp, 4
mov eax, ebx
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.004140c3
mov esp, ebp
pop ebp
ret 0x90
mov esi, 8
jmp 0x40bddb