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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push 0x10
call fcn.0040e9db
add esp, 4
mov dword [ebp - 4], 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
push 8
call fcn.0040e9db
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx], 0x4d985b
push ebx
add ebx, 4
push ebx
push 8
call fcn.0040e9db
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
pop ebx
pop ebx
push ebx
mov eax, esp
push eax
call fcn.0040be22
pop ebx
push 8
call fcn.0040e9db
add esp, 4
mov dword [ebp - 0xc], eax
mov edi, eax
mov esi, 0x4d8add
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
push 8
call fcn.0040e9db
add esp, 4
mov dword [ebp - 0x14], eax
mov edi, eax
mov esi, 0x4d8add
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], esp
push 0
mov eax, 0
call fcn.0040e9cf
cmp dword [ebp - 0x1c], esp
je 0x40b692
push 6
call fcn.0040e9c9
add esp, 4
cmp dword [ebp + 0x3c], 0
mov eax, 0
sete al
and eax, 1
xor eax, 1
test eax, eax
je 0x40b6e8
push VariantClear
push 0
mov ebx, dword [ebp + 0x38]
mov eax, dword [ebx]
test eax, eax
jne 0x40b6c1
mov eax, 0x4d8ac2
push eax
push 1
mov ebx, 0x40ed70
call fcn.0040e9d5
add esp, 0x10
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x40b6e8
mov eax, 1
jmp 0x40b6ea
xor eax, eax
test eax, eax
je 0x40b7be
push 0x10031
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x410eb0
call fcn.0040e9d5
add esp, 0x10
push 0
push 0
push 0
push VariantClear
push 0
mov ebx, dword [ebp + 0x38]
mov eax, dword [ebx]
test eax, eax
jne 0x40b729
mov eax, 0x4d8ac2
push eax
push 0x10031
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x411880
call fcn.0040e9d5
add esp, 0x28
push 0x10
call fcn.0040e9db
add esp, 4
mov dword [ebp - 0x1c], 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
push 0
lea eax, [ebp - 0x1c]
push eax
push 1
lea eax, [ebp - 4]
push eax
push 1
push 2
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x24]
mov ebx, dword [ebp - 0x1c]
push ebx
push 0x10031
push 0
push ebx
push 1
mov ebx, 0x410eb0
call fcn.0040e9d5
add esp, 0x10
call fcn.0040e9e1
add esp, 4
push 0x10031
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x410eb0
call fcn.0040e9d5
add esp, 0x10
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0x10031
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x411880
call fcn.0040e9d5
add esp, 0x28
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov eax, 0x4d9185
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x2c]
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b83b
push ebx
call fcn.0040e9e1
add esp, 4
mov eax, 0x4d9849
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, str.Accept
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x30]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40b871
push ebx
call fcn.0040e9e1
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b881
push ebx
call fcn.0040e9e1
add esp, 4
push dword [ebp + 0x20]
mov eax, str.Referer
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x30]
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b8ae
push ebx
call fcn.0040e9e1
add esp, 4
mov eax, str.Mozilla_5.0__compatible__MSIE_9.0__Windows_NT_6.1__WOW64__Trident_5.0_
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, str.User_Agent
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x30]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40b8e4
push ebx
call fcn.0040e9e1
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b8f4
push ebx
call fcn.0040e9e1
add esp, 4
push dword [ebp + 0x10]
mov eax, str.Cookie
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x30]
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b921
push ebx
call fcn.0040e9e1
add esp, 4
push 0x4e20
push 0x4e20
push 0x4e20
push 0x4e20
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x48]
cmp dword [ebp + 0x34], 0
mov eax, 0
sete al
and eax, 1
xor eax, 1
test eax, eax
je 0x40bbb7
push 0
push 0
push 0
push VariantClear
push 0
push 0x4d8abf
push VariantClear
push 0
mov ebx, dword [ebp + 0x30]
mov eax, dword [ebx]
test eax, eax
jne 0x40b984
mov eax, 0x4d8ac2
push eax
push 3
mov ebx, 0x40f7c0
call fcn.0040e9d5
add esp, 0x28
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40b9bc
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40b9b8
imul eax, dword [ebx]
jmp 0x40b9ad
mov ecx, eax
test ecx, ecx
je 0x40b9db
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40b9d4
push ebx
push eax
call fcn.0040e9e1
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40b9c2
call fcn.0040e9e1
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 0xc]
call fcn.00401131
xor ecx, ecx
push eax
lea eax, [ebp - 0x10]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x40bbb4
mov ebx, dword [ebp - 0xc]
call fcn.0040114a
push ebx
push ecx
mov eax, dword [ebp - 0x10]
dec eax
jns 0x40ba23
push 4
call fcn.0040e9c9
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40ba36
push 1
call fcn.0040e9c9
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
push 0x4d8ac2
mov ebx, dword [ebp - 0x1c]
push dword [ebx]
call fcn.00402eac
add esp, 8
cmp eax, 0
jne 0x40ba5e
jmp 0x40bbac
mov ebx, dword [ebp - 0xc]
call fcn.0040114a
push ebx
push ecx
mov eax, dword [ebp - 0x10]
dec eax
jns 0x40ba7b
push 4
call fcn.0040e9c9
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40ba8e
push 1
call fcn.0040e9c9
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
push 0
push 0
push 0
push VariantClear
push 0
push 0x4d8d8c
push VariantClear
push 0
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
test eax, eax
jne 0x40babd
mov eax, 0x4d8ac2
push eax
push 3
mov ebx, 0x40f7c0
call fcn.0040e9d5
add esp, 0x28
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x14]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40baf5
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40baf1
imul eax, dword [ebx]
jmp 0x40bae6
mov ecx, eax
test ecx, ecx
je 0x40bb14
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40bb0d
push ebx
push eax
call fcn.0040e9e1
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40bafb
call fcn.0040e9e1
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x14]
call fcn.00401131
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 2
jge 0x40bb3a
jmp 0x40bbac
mov ebx, dword [ebp - 0x14]
call fcn.0040114a
mov eax, 0
cmp eax, ecx
jl 0x40bb58
push 1
call fcn.0040e9c9
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x14]
call fcn.0040114a
mov eax, 1
cmp eax, ecx
jl 0x40bb7e
push 1
call fcn.0040e9c9
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x30]
push 0
mov ebx, 0x4108a0
call fcn.0040e9d5
add esp, 4
pop eax
pop ebx
pop ecx
jmp 0x40b9f8
add esp, 0xc
push 0x10031
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x410eb0
call fcn.0040e9d5
add esp, 0x10
cmp dword [ebp + 0x2c], 0
jne 0x40bc10
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
push 0x10031
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x411880
call fcn.0040e9d5
add esp, 0x28
jmp 0x40bc3c
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push dword [ebp + 0x28]
push 0x10031
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x411880
call fcn.0040e9d5
add esp, 0x28
lea eax, [ebp - 4]
push eax
push 6
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x20]
push 0x10031
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x410eb0
call fcn.0040e9d5
add esp, 0x10
push 0
push 0
push 0
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x40bc8a
mov eax, 0x4d8add
push eax
push 0x10031
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x411880
call fcn.0040e9d5
add esp, 0x28
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x3c]
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40bcde
push ebx
call fcn.0040e9e1
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x38]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp + 0x18]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40bd09
push ebx
call fcn.0040e9e1
add esp, 4
pop eax
mov ebx, dword [ebp + 0x18]
mov dword [ebx], eax
mov dword [ebp - 0x1c], esp
mov eax, 1
call fcn.0040e9cf
cmp dword [ebp - 0x1c], esp
je 0x40bd2e
push 6
call fcn.0040e9c9
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40bd48
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0040e9db
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40bd4d
push eax
mov ebx, dword [ebp - 4]
push ebx
push 0x10031
push 0
push ebx
push 1
mov ebx, 0x410eb0
call fcn.0040e9d5
add esp, 0x10
call fcn.0040e9e1
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.0040e9e1
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40bd9f
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40bd9b
imul eax, dword [ebx]
jmp 0x40bd90
mov ecx, eax
test ecx, ecx
je 0x40bdbe
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40bdb7
push ebx
push eax
call fcn.0040e9e1
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40bda5
call fcn.0040e9e1
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40bde4
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40bde0
imul eax, dword [ebx]
jmp 0x40bdd5
mov ecx, eax
test ecx, ecx
je 0x40be03
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40bdfc
push ebx
push eax
call fcn.0040e9e1
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40bdea
call fcn.0040e9e1
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40be1b
push ebx
call fcn.0040e9e1
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x38