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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push 8
call fcn.0040f991
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 8
call fcn.0040f991
add esp, 4
mov dword [ebp - 8], eax
mov edi, eax
mov esi, 0x4ce587
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0xc], 0
push 8
call fcn.0040f991
add esp, 4
mov dword [ebp - 0x10], eax
mov edi, eax
mov esi, 0x4ce587
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
push 0x10
call fcn.0040f991
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov eax, 3
mov dword [ebx], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], esp
push 0
mov eax, 2
call fcn.0040f985
cmp dword [ebp - 0x1c], esp
je 0x40a1c1
push 6
call fcn.0040f97f
add esp, 4
push 0
push 0
push 0
push getpeername
push 0
push str.WinHttp.WinhttpRequest.5.1
push 0x10030
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x412fa0
call fcn.0040f98b
add esp, 0x28
cmp dword [ebp + 0x48], 0
mov eax, 0
sete al
and eax, 1
xor eax, 1
test eax, eax
je 0x40a245
push getpeername
push 0
mov ebx, dword [ebp + 0x44]
mov eax, dword [ebx]
test eax, eax
jne 0x40a21e
mov eax, 0x4ce570
push eax
push 1
mov ebx, 0x40fd30
call fcn.0040f98b
add esp, 0x10
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x40a245
mov eax, 1
jmp 0x40a247
xor eax, eax
test eax, eax
je 0x40a28d
push 0xa0000004
push 0
push dword [ebp + 0x44]
push 0x80000301
push 0
push 2
push getpeername
push 0
push str.SetProxy
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x411f30
call fcn.0040f98b
add esp, 0x34
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0xa0000004
push 0
push dword [ebp + 8]
push getpeername
push 0
push 0x4d7753
push getpeername
push 0
push 0x4d7888
push 0x10030
push 0
push dword [ebp - 4]
push 5
mov ebx, 0x411f30
call fcn.0040f98b
add esp, 0x40
push 0xa0000004
push 0
push dword [ebp + 0x1c]
push getpeername
push 0
push str.cookie
push getpeername
push 0
push str.SetRequestHeader
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x411f30
call fcn.0040f98b
add esp, 0x34
push 0xa0000004
push 0
push dword [ebp + 0x2c]
push getpeername
push 0
push str.Referer
push getpeername
push 0
push str.SetRequestHeader
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x411f30
call fcn.0040f98b
add esp, 0x34
push getpeername
push 0
push str.Mozilla_5.0__compatible__MSIE_9.0__Windows_NT_6.1__WOW64__Trident_5.0_
push getpeername
push 0
push str.User_Agent
push getpeername
push 0
push str.SetRequestHeader
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x411f30
call fcn.0040f98b
add esp, 0x34
cmp dword [ebp + 0x40], 0
mov eax, 0
sete al
and eax, 1
xor eax, 1
test eax, eax
je 0x40a647
push 0
push 0
push 0
push getpeername
push 0
push 0x4ce571
push getpeername
push 0
mov ebx, dword [ebp + 0x3c]
mov eax, dword [ebx]
test eax, eax
jne 0x40a3d4
mov eax, 0x4ce570
push eax
push 3
mov ebx, 0x4106f0
call fcn.0040f98b
add esp, 0x28
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40a40c
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40a408
imul eax, dword [ebx]
jmp 0x40a3fd
mov ecx, eax
test ecx, ecx
je 0x40a42b
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40a424
push ebx
push eax
call fcn.0040f997
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40a412
call fcn.0040f997
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
call fcn.004010db
xor ecx, ecx
push eax
lea eax, [ebp - 0xc]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x40a644
mov ebx, dword [ebp - 8]
call fcn.004010f4
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x40a473
push 4
call fcn.0040f97f
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40a486
push 1
call fcn.0040f97f
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
push 0x4ce570
mov ebx, dword [ebp - 0x1c]
push dword [ebx]
call fcn.00401d28
add esp, 8
cmp eax, 0
jne 0x40a4ae
jmp 0x40a63c
mov ebx, dword [ebp - 8]
call fcn.004010f4
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x40a4cb
push 4
call fcn.0040f97f
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40a4de
push 1
call fcn.0040f97f
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
push 0
push 0
push 0
push getpeername
push 0
push 0x4d77c4
push getpeername
push 0
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
test eax, eax
jne 0x40a50d
mov eax, 0x4ce570
push eax
push 3
mov ebx, 0x4106f0
call fcn.0040f98b
add esp, 0x28
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x10]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40a545
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40a541
imul eax, dword [ebx]
jmp 0x40a536
mov ecx, eax
test ecx, ecx
je 0x40a564
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40a55d
push ebx
push eax
call fcn.0040f997
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40a54b
call fcn.0040f997
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0x10]
call fcn.004010db
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 2
jge 0x40a58a
jmp 0x40a63c
mov ebx, dword [ebp - 0x10]
call fcn.004010f4
mov eax, 0
cmp eax, ecx
jl 0x40a5a8
push 1
call fcn.0040f97f
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x10]
call fcn.004010f4
mov eax, 1
cmp eax, ecx
jl 0x40a5ce
push 1
call fcn.0040f97f
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
push getpeername
push 0
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
test eax, eax
jne 0x40a5eb
mov eax, 0x4ce570
push eax
push getpeername
push 0
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
test eax, eax
jne 0x40a601
mov eax, 0x4ce570
push eax
push getpeername
push 0
push str.SetRequestHeader
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x411f30
call fcn.0040f98b
add esp, 0x34
push 0
mov ebx, 0x411900
call fcn.0040f98b
add esp, 4
pop eax
pop ebx
pop ecx
jmp 0x40a448
add esp, 0xc
cmp dword [ebp + 0x50], 0
jne 0x40a6ae
push 0x80000301
push 0
push 0x4e20
push 0x80000301
push 0
push 0x4e20
push 0x80000301
push 0
push 0x4e20
push 0x80000301
push 0
push 0x4e20
push getpeername
push 0
push str.SetTimeOuts
push 0x10030
push 0
push dword [ebp - 4]
push 6
mov ebx, 0x411f30
call fcn.0040f98b
add esp, 0x4c
jmp 0x40a702
push 0xa0000301
push 0
lea eax, [ebp + 0x4c]
push eax
push 0xa0000301
push 0
lea eax, [ebp + 0x4c]
push eax
push 0xa0000301
push 0
lea eax, [ebp + 0x4c]
push eax
push 0xa0000301
push 0
lea eax, [ebp + 0x4c]
push eax
push getpeername
push 0
push str.SetTimeOuts
push 0x10030
push 0
push dword [ebp - 4]
push 6
mov ebx, 0x411f30
call fcn.0040f98b
add esp, 0x4c
cmp dword [ebp + 0x38], 0
jne 0x40a751
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
push 0x80000301
push 0
push 6
push getpeername
push 0
push str.Option
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x412ec0
call fcn.0040f98b
add esp, 0x34
jmp 0x40a790
push 0xa0000002
push 0
lea eax, [ebp + 0x34]
push eax
push 0x80000301
push 0
push 6
push getpeername
push 0
push str.Option
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x412ec0
call fcn.0040f98b
add esp, 0x34
push 0xa0000004
push 0
push dword [ebp + 0xc]
push getpeername
push 0
push str.Send
push 0x10030
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x411f30
call fcn.0040f98b
add esp, 0x28
push 0
push 0
push 0
push getpeername
push 0
push str.responseBody
push 0x10030
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x411f00
call fcn.0040f98b
add esp, 0x28
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x14]
push ebx
push 0x10031
push 0
push ebx
push 1
mov ebx, 0x412050
call fcn.0040f98b
add esp, 0x10
call fcn.0040f997
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push 0x10031
push 0
push dword [ebp - 0x14]
push 2
mov ebx, 0x412090
call fcn.0040f98b
add esp, 0x1c
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40a857
push ebx
call fcn.0040f997
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push getpeername
push 0
push str.GetAllResponseHeaders
push 0x10030
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x411f90
call fcn.0040f98b
add esp, 0x28
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp + 0x24]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40a8a2
push ebx
call fcn.0040f997
add esp, 4
pop eax
mov ebx, dword [ebp + 0x24]
mov dword [ebx], eax
mov dword [ebp - 0x1c], esp
mov eax, 3
call fcn.0040f985
cmp dword [ebp - 0x1c], esp
je 0x40a8c7
push 6
call fcn.0040f97f
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40a8e1
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0040f991
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40a8e6
push eax
mov ebx, dword [ebp - 4]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x412f90
call fcn.0040f98b
add esp, 0x10
call fcn.0040f997
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40a928
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40a924
imul eax, dword [ebx]
jmp 0x40a919
mov ecx, eax
test ecx, ecx
je 0x40a947
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40a940
push ebx
push eax
call fcn.0040f997
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40a92e
call fcn.0040f997
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40a96d
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40a969
imul eax, dword [ebx]
jmp 0x40a95e
mov ecx, eax
test ecx, ecx
je 0x40a98c
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40a985
push ebx
push eax
call fcn.0040f997
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40a973
call fcn.0040f997
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
push 0x10031
push 0
push ebx
push 1
mov ebx, 0x412050
call fcn.0040f98b
add esp, 0x10
call fcn.0040f997
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40a9c7
push ebx
call fcn.0040f997
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x4c