Function at 0x460130
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c6e1
mov eax, dword fs:[0]
push eax
mov eax, 0x1f7c
call fcn.004732a0
mov eax, dword [0x4c3718]
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 + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1f68], ebx
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], 0
jb 0x46017f
mov eax, dword [ebx]
jmp 0x460181
mov eax, ebx
mov byte [eax], 0
test esi, esi
je 0x4606b0
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x460191
sub ecx, edx
cmp ecx, 5
jb 0x4606b0
push 0x3c
lea eax, [ebp - 0x1f64]
push 0
push eax
call fcn.00474170
push 0x100
lea eax, [ebp - 0x110]
mov dword [ebp - 0x1f64], 0x3c
push 0
push eax
call fcn.00474170
lea eax, [ebp - 0x110]
mov dword [ebp - 0x1f5c], 0x80
push 0x800
mov dword [ebp - 0x1f60], eax
lea eax, [ebp - 0xef0]
push 0
push eax
call fcn.00474170
lea eax, [ebp - 0xef0]
mov dword [ebp - 0x1f50], 0x400
push 0x800
mov dword [ebp - 0x1f54], eax
lea eax, [ebp - 0x16f0]
push 0
push eax
call fcn.00474170
lea eax, [ebp - 0x16f0]
mov dword [ebp - 0x1f34], 0x400
push 0x800
mov dword [ebp - 0x1f38], eax
lea eax, [ebp - 0x1ef0]
push 0
push eax
call fcn.00474170
add esp, 0x3c
mov dword [ebp - 0x1f2c], 0x400
cmp byte [esi], 0
lea eax, [ebp - 0x1ef0]
mov dword [ebp - 0x1f30], eax
mov dword [ebp - 0x1f74], 0xf
mov dword [ebp - 0x1f78], 0
mov byte [ebp - 0x1f88], 0
jne 0x460288
xor ecx, ecx
jmp 0x460299
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x460290
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x1f88]
call fcn.0040ccc0
push 0
lea eax, [ebp - 0x1f88]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x1f28]
push eax
call fcn.0045fc60
add esp, 0xc
mov eax, dword [ebp - 0x1f74]
mov byte [ebp - 4], 2
cmp eax, 0x10
jb 0x460319
mov ecx, dword [ebp - 0x1f88]
inc eax
cmp eax, 0x1000
jb 0x460310
test cl, 0x1f
je 0x4602ec
call fcn.00478b61
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4602f8
call fcn.00478b61
sub ecx, eax
cmp ecx, 4
jae 0x460304
call fcn.00478b61
cmp ecx, 0x23
jbe 0x46030e
call fcn.00478b61
mov ecx, eax
push ecx
call fcn.004729a5
add esp, 4
cmp dword [ebp - 0x1f14], 8
lea ecx, [ebp - 0x1f64]
push ecx
push SysReAllocString
push dword [ebp - 0x1f18]
lea eax, [ebp - 0x1f28]
mov dword [ebp - 0x1f74], 0xf
cmovae eax, dword [ebp - 0x1f28]
push eax
mov dword [ebp - 0x1f78], 0
mov byte [ebp - 0x1f88], 0
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x460375
lea ecx, [ebp - 0x1f28]
call fcn.00419520
jmp 0x4606b0
push 0
push 0
push 0
push 1
push str.Mozilla_5.0__compatible__MSIE_9.0__Windows_NT_6.1__WOW64__Trident_5.0_
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
mov dword [ebp - 0x1f70], edi
test edi, edi
je 0x460365
push 0x2710
push 0x2710
push 0x2710
push 0x2710
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
push 0
push dword [ebp - 0x1f4c]
push dword [ebp - 0x1f54]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x1f6c], eax
test eax, eax
jne 0x4603e4
lea ecx, [ebp - 0x1f28]
call fcn.00419520
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x4606ad
mov edx, dword [ebp - 0x1f38]
xor eax, eax
mov dword [ebp - 0x1efc], 7
mov dword [ebp - 0x1f00], 0
mov word [ebp - 0x1f10], ax
cmp word [edx], ax
jne 0x460410
xor ecx, ecx
jmp 0x460424
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x460415
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1f10]
call fcn.00404000
mov edx, dword [ebp - 0x1f30]
mov byte [ebp - 4], 3
cmp word [edx], 0
jne 0x460445
xor ecx, ecx
jmp 0x46045f
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x460450
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1f10]
call fcn.0040cb90
cmp dword [ebp - 0x1efc], 8
lea eax, [ebp - 0x1f10]
push 0
cmovae eax, dword [ebp - 0x1f10]
push 0
push 0
push 0
push eax
push 0x4a9b10
push dword [ebp - 0x1f6c]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
test esi, esi
jne 0x4604c1
lea ecx, [ebp - 0x1f10]
call fcn.00419520
lea ecx, [ebp - 0x1f28]
call fcn.00419520
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x4606a5
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x4604f3
lea ecx, [ebp - 0x1f10]
call fcn.00419520
lea ecx, [ebp - 0x1f28]
call fcn.00419520
jmp 0x46069c
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x4604d8
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov dword [ebp - 0x1ef4], 0
nop word [eax + eax]
push 0x5dd
lea eax, [ebp - 0x6f0]
push 0
push eax
call fcn.00474170
add esp, 0xc
lea eax, [ebp - 0x1ef4]
push eax
push esi
call edi
test eax, eax
je 0x460592
cmp dword [ebp - 0x1ef4], 0
je 0x460592
lea eax, [ebp - 0x1ef8]
mov dword [ebp - 0x1ef8], 0
push eax
push 0x5dc
lea eax, [ebp - 0x6f0]
push eax
push esi
call ebx
test eax, eax
je 0x460592
push dword [ebp - 0x1ef8]
mov ecx, dword [ebp - 0x1f68]
lea eax, [ebp - 0x6f0]
push eax
call fcn.0040c950
cmp dword [ebp - 0x1ef4], 0
ja 0x460520
mov eax, dword [ebp - 0x1efc]
cmp eax, 8
jb 0x4605f4
mov ecx, dword [ebp - 0x1f10]
inc eax
cmp eax, 0x7fffffff
jbe 0x4605b0
call fcn.00478b61
add eax, eax
cmp eax, 0x1000
jb 0x4605eb
test byte [ebp - 0x1f10], 0x1f
je 0x4605c7
call fcn.00478b61
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4605d3
call fcn.00478b61
sub ecx, eax
cmp ecx, 4
jae 0x4605df
call fcn.00478b61
cmp ecx, 0x23
jbe 0x4605e9
call fcn.00478b61
mov ecx, eax
push ecx
call fcn.004729a5
add esp, 4
xor eax, eax
mov dword [ebp - 0x1efc], 7
mov word [ebp - 0x1f10], ax
mov eax, dword [ebp - 0x1f14]
mov dword [ebp - 0x1f00], 0
cmp eax, 8
jb 0x460673
mov ecx, dword [ebp - 0x1f28]
inc eax
cmp eax, 0x7fffffff
jbe 0x46062f
call fcn.00478b61
add eax, eax
cmp eax, 0x1000
jb 0x46066a
test byte [ebp - 0x1f28], 0x1f
je 0x460646
call fcn.00478b61
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x460652
call fcn.00478b61
sub ecx, eax
cmp ecx, 4
jae 0x46065e
call fcn.00478b61
cmp ecx, 0x23
jbe 0x460668
call fcn.00478b61
mov ecx, eax
push ecx
call fcn.004729a5
add esp, 4
mov ebx, dword [ebp - 0x1f68]
xor eax, eax
mov edi, dword [ebp - 0x1f70]
mov dword [ebp - 0x1f14], 7
mov dword [ebp - 0x1f18], 0
mov word [ebp - 0x1f28], ax
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0x1f6c]
call esi
push edi
call esi
mov eax, dword [ebx + 0x10]
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.00472961
mov esp, ebp
pop ebp
ret