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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cbbc1
mov eax, dword fs:[0]
push eax
mov eax, 0x1f7c
call fcn.004a1a00
mov eax, dword [0x4fd5c0]
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 0x40b42f
mov eax, dword [ebx]
jmp 0x40b431
mov eax, ebx
mov byte [eax], 0
test esi, esi
je 0x40b960
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b441
sub ecx, edx
cmp ecx, 5
jb 0x40b960
push 0x3c
lea eax, [ebp - 0x1f64]
push 0
push eax
call fcn.004a3390
push 0x100
lea eax, [ebp - 0x110]
mov dword [ebp - 0x1f64], 0x3c
push 0
push eax
call fcn.004a3390
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.004a3390
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.004a3390
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.004a3390
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 0x40b538
xor ecx, ecx
jmp 0x40b549
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b540
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x1f88]
call fcn.00406aa0
push 0
lea eax, [ebp - 0x1f88]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x1f28]
push eax
call fcn.0040a080
add esp, 0xc
mov eax, dword [ebp - 0x1f74]
mov byte [ebp - 4], 2
cmp eax, 0x10
jb 0x40b5c9
mov ecx, dword [ebp - 0x1f88]
inc eax
cmp eax, 0x1000
jb 0x40b5c0
test cl, 0x1f
je 0x40b59c
call fcn.004a7532
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40b5a8
call fcn.004a7532
sub ecx, eax
cmp ecx, 4
jae 0x40b5b4
call fcn.004a7532
cmp ecx, 0x23
jbe 0x40b5be
call fcn.004a7532
mov ecx, eax
push ecx
call fcn.004a10ce
add esp, 4
cmp dword [ebp - 0x1f14], 8
lea ecx, [ebp - 0x1f64]
push ecx
push accept
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 0x40b625
lea ecx, [ebp - 0x1f28]
call fcn.00449280
jmp 0x40b960
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 0x40b615
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 0x40b694
lea ecx, [ebp - 0x1f28]
call fcn.00449280
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x40b95d
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 0x40b6c0
xor ecx, ecx
jmp 0x40b6d4
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b6c5
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1f10]
call fcn.004033f0
mov edx, dword [ebp - 0x1f30]
mov byte [ebp - 4], 3
cmp word [edx], 0
jne 0x40b6f5
xor ecx, ecx
jmp 0x40b70f
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b700
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1f10]
call fcn.004031a0
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 0x4d0fb8
push dword [ebp - 0x1f6c]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
test esi, esi
jne 0x40b771
lea ecx, [ebp - 0x1f10]
call fcn.00449280
lea ecx, [ebp - 0x1f28]
call fcn.00449280
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x40b955
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 0x40b7a3
lea ecx, [ebp - 0x1f10]
call fcn.00449280
lea ecx, [ebp - 0x1f28]
call fcn.00449280
jmp 0x40b94c
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x40b788
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.004a3390
add esp, 0xc
lea eax, [ebp - 0x1ef4]
push eax
push esi
call edi
test eax, eax
je 0x40b842
cmp dword [ebp - 0x1ef4], 0
je 0x40b842
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 0x40b842
push dword [ebp - 0x1ef8]
mov ecx, dword [ebp - 0x1f68]
lea eax, [ebp - 0x6f0]
push eax
call fcn.004014f0
cmp dword [ebp - 0x1ef4], 0
ja 0x40b7d0
mov eax, dword [ebp - 0x1efc]
cmp eax, 8
jb 0x40b8a4
mov ecx, dword [ebp - 0x1f10]
inc eax
cmp eax, 0x7fffffff
jbe 0x40b860
call fcn.004a7532
add eax, eax
cmp eax, 0x1000
jb 0x40b89b
test byte [ebp - 0x1f10], 0x1f
je 0x40b877
call fcn.004a7532
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40b883
call fcn.004a7532
sub ecx, eax
cmp ecx, 4
jae 0x40b88f
call fcn.004a7532
cmp ecx, 0x23
jbe 0x40b899
call fcn.004a7532
mov ecx, eax
push ecx
call fcn.004a10ce
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 0x40b923
mov ecx, dword [ebp - 0x1f28]
inc eax
cmp eax, 0x7fffffff
jbe 0x40b8df
call fcn.004a7532
add eax, eax
cmp eax, 0x1000
jb 0x40b91a
test byte [ebp - 0x1f28], 0x1f
je 0x40b8f6
call fcn.004a7532
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40b902
call fcn.004a7532
sub ecx, eax
cmp ecx, 4
jae 0x40b90e
call fcn.004a7532
cmp ecx, 0x23
jbe 0x40b918
call fcn.004a7532
mov ecx, eax
push ecx
call fcn.004a10ce
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.004a10e1
mov esp, ebp
pop ebp
ret