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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push 8
call fcn.0040fbed
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 8
call fcn.0040fbed
add esp, 4
mov dword [ebp - 8], eax
mov edi, eax
mov esi, 0x4f4567
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.0040fbed
add esp, 4
mov dword [ebp - 0x10], eax
mov edi, eax
mov esi, 0x4f4567
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
push 0x10
call fcn.0040fbed
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, 3
call fcn.0040fbe1
cmp dword [ebp - 0x1c], esp
je 0x406501
push 6
call fcn.0040fbdb
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, 0x4137e0
call fcn.0040fbe7
add esp, 0x28
cmp dword [ebp + 0x48], 0
mov eax, 0
sete al
and eax, 1
xor eax, 1
test eax, eax
je 0x406585
push getpeername
push 0
mov ebx, dword [ebp + 0x44]
mov eax, dword [ebx]
test eax, eax
jne 0x40655e
mov eax, 0x4f4512
push eax
push 1
mov ebx, 0x410080
call fcn.0040fbe7
add esp, 0x10
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x406585
mov eax, 1
jmp 0x406587
xor eax, eax
test eax, eax
je 0x4065cd
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, 0x4127a0
call fcn.0040fbe7
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 0x509c74
push getpeername
push 0
push 0x509c79
push 0x10030
push 0
push dword [ebp - 4]
push 5
mov ebx, 0x4127a0
call fcn.0040fbe7
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, 0x4127a0
call fcn.0040fbe7
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, 0x4127a0
call fcn.0040fbe7
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 0x509ce5
push getpeername
push 0
push str.SetRequestHeader
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x4127a0
call fcn.0040fbe7
add esp, 0x34
cmp dword [ebp + 0x40], 0
mov eax, 0
sete al
and eax, 1
xor eax, 1
test eax, eax
je 0x406987
push 0
push 0
push 0
push getpeername
push 0
push 0x4f4500
push getpeername
push 0
mov ebx, dword [ebp + 0x3c]
mov eax, dword [ebx]
test eax, eax
jne 0x406714
mov eax, 0x4f4512
push eax
push 3
mov ebx, 0x410e00
call fcn.0040fbe7
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 0x40674c
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x406748
imul eax, dword [ebx]
jmp 0x40673d
mov ecx, eax
test ecx, ecx
je 0x40676b
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x406764
push ebx
push eax
call fcn.0040fbf3
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x406752
call fcn.0040fbf3
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
call fcn.004028d7
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 0x406984
mov ebx, dword [ebp - 8]
call fcn.004028b7
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x4067b3
push 4
call fcn.0040fbdb
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x4067c6
push 1
call fcn.0040fbdb
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
push 0x4f4512
mov ebx, dword [ebp - 0x1c]
push dword [ebx]
call fcn.004012f5
add esp, 8
cmp eax, 0
jne 0x4067ee
jmp 0x40697c
mov ebx, dword [ebp - 8]
call fcn.004028b7
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x40680b
push 4
call fcn.0040fbdb
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40681e
push 1
call fcn.0040fbdb
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 0x509cf0
push getpeername
push 0
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
test eax, eax
jne 0x40684d
mov eax, 0x4f4512
push eax
push 3
mov ebx, 0x410e00
call fcn.0040fbe7
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 0x406885
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x406881
imul eax, dword [ebx]
jmp 0x406876
mov ecx, eax
test ecx, ecx
je 0x4068a4
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40689d
push ebx
push eax
call fcn.0040fbf3
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40688b
call fcn.0040fbf3
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0x10]
call fcn.004028d7
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 2
jge 0x4068ca
jmp 0x40697c
mov ebx, dword [ebp - 0x10]
call fcn.004028b7
mov eax, 0
cmp eax, ecx
jl 0x4068e8
push 1
call fcn.0040fbdb
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x10]
call fcn.004028b7
mov eax, 1
cmp eax, ecx
jl 0x40690e
push 1
call fcn.0040fbdb
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 0x40692b
mov eax, 0x4f4512
push eax
push getpeername
push 0
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
test eax, eax
jne 0x406941
mov eax, 0x4f4512
push eax
push getpeername
push 0
push str.SetRequestHeader
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x4127a0
call fcn.0040fbe7
add esp, 0x34
push 0
mov ebx, 0x412180
call fcn.0040fbe7
add esp, 4
pop eax
pop ebx
pop ecx
jmp 0x406788
add esp, 0xc
cmp dword [ebp + 0x50], 0
jne 0x4069ee
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, 0x4127a0
call fcn.0040fbe7
add esp, 0x4c
jmp 0x406a42
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, 0x4127a0
call fcn.0040fbe7
add esp, 0x4c
cmp dword [ebp + 0x38], 0
jne 0x406a91
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, 0x413700
call fcn.0040fbe7
add esp, 0x34
jmp 0x406ad0
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, 0x413700
call fcn.0040fbe7
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, 0x4127a0
call fcn.0040fbe7
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, 0x412770
call fcn.0040fbe7
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, 0x412890
call fcn.0040fbe7
add esp, 0x10
call fcn.0040fbf3
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, 0x4128d0
call fcn.0040fbe7
add esp, 0x1c
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x406b97
push ebx
call fcn.0040fbf3
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, 0x412800
call fcn.0040fbe7
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 0x406be2
push ebx
call fcn.0040fbf3
add esp, 4
pop eax
mov ebx, dword [ebp + 0x24]
mov dword [ebx], eax
push 0x10030
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x4137d0
call fcn.0040fbe7
add esp, 0x10
mov dword [ebp - 0x1c], esp
mov eax, 4
call fcn.0040fbe1
cmp dword [ebp - 0x1c], esp
je 0x406c23
push 6
call fcn.0040fbdb
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x406c3d
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0040fbed
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x406c42
push eax
mov ebx, dword [ebp - 4]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x4137d0
call fcn.0040fbe7
add esp, 0x10
call fcn.0040fbf3
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x406c84
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x406c80
imul eax, dword [ebx]
jmp 0x406c75
mov ecx, eax
test ecx, ecx
je 0x406ca3
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x406c9c
push ebx
push eax
call fcn.0040fbf3
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x406c8a
call fcn.0040fbf3
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x406cc9
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x406cc5
imul eax, dword [ebx]
jmp 0x406cba
mov ecx, eax
test ecx, ecx
je 0x406ce8
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x406ce1
push ebx
push eax
call fcn.0040fbf3
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x406ccf
call fcn.0040fbf3
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
push 0x10031
push 0
push ebx
push 1
mov ebx, 0x412890
call fcn.0040fbe7
add esp, 0x10
call fcn.0040fbf3
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x406d23
push ebx
call fcn.0040fbf3
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x4c