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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489ef3
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x4bd008]
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
movzx edi, word [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0x4a27cc
push 0
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], edi
call fcn.0045c22b
add esp, 8
push 0
push 0
push 0
push 0
push str.Mozilla_5.0__Windows_NT_10.0__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_65.0.3325.181_Safari_537.36
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ebx, eax
mov dword [ebp - 0x50], ebx
test ebx, ebx
je 0x40b9be
push 0
push 0
push 0x1388
push 0x1388
push 0
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov edx, esi
lea ecx, [ebp - 0x80]
call fcn.00442600
cmp dword [eax + 0x14], 8
jb 0x40b642
mov eax, dword [eax]
push 0
push edi
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edx, dword [ebp - 0x6c]
mov ebx, eax
mov dword [ebp - 0x4c], ebx
cmp edx, 8
jb 0x40b68c
mov ecx, dword [ebp - 0x80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b682
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b9dc
push edx
push ecx
call fcn.004449d2
add esp, 8
xor eax, eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 7
mov word [ebp - 0x80], ax
test ebx, ebx
je 0x40b9be
mov eax, 0x1bb
cmp di, ax
jne 0x40b6d2
push 0x800000
push 0
push 0
push 0
push 0
push 0x4a2e10
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
mov dword [ebp - 0x34], ebx
jmp 0x40b6ed
push 0
push 0
push 0
push 0
push 0
push 0x4a2e10
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
mov dword [ebp - 0x34], eax
test ebx, ebx
je 0x40b9be
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x40b9be
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x14], 0
test eax, eax
je 0x40b9ab
lea eax, [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x40b9be
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40b9be
mov ecx, 0x400
cmp eax, ecx
cmova eax, ecx
mov dword [ebp - 0x30], eax
inc eax
push eax
call fcn.00444b06
mov esi, eax
add esp, 4
mov dword [ebp - 0x48], esi
test esi, esi
je 0x40b9be
mov ecx, dword [ebp - 0x30]
inc ecx
push ecx
push 0
push esi
call fcn.0044a330
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x30]
push esi
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
cmp dword [ebp - 0x14], 0
je 0x40b9be
push dword [ebp - 0x30]
lea ecx, [ebp - 0x98]
push esi
call fcn.0040bda0
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
call fcn.0040b120
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x84]
cmp edx, 0x10
jb 0x40b7f8
mov ecx, dword [ebp - 0x98]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b7ee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b9e1
push edx
push ecx
call fcn.004449d2
add esp, 8
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmovae eax, dword [ebp - 0x2c]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0xf
mov byte [ebp - 0x98], 0
call edi
mov esi, eax
xor ecx, ecx
mov edx, 2
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00444b06
lea ecx, [esi*2 + 2]
mov ebx, eax
push ecx
push 0
push ebx
mov dword [ebp - 0x3c], ebx
call fcn.0044a330
add esp, 0x10
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
cmovae ecx, dword [ebp - 0x2c]
push esi
push ebx
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call edi
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
call ebx
mov edi, eax
lea esi, [edi + 1]
push esi
call fcn.00444b06
push esi
mov esi, eax
mov dword [ebp - 0x38], eax
push 0
push esi
call fcn.0044a330
add esp, 0x10
push 0
push 0
push edi
mov edi, dword [ebp - 0x3c]
push esi
push 0xffffffffffffffff
push edi
push 0
push 0
call ebx
mov ecx, esi
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b8e0
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x68]
call fcn.00403320
test edi, edi
je 0x40b900
push edi
call fcn.00444a03
add esp, 4
test esi, esi
je 0x40b90d
push esi
call fcn.00444a03
add esp, 4
cmp dword [ebp - 0x54], 0x10
lea eax, [ebp - 0x68]
mov ecx, dword [ebp - 0x40]
cmovae eax, dword [ebp - 0x68]
cmp dword [ecx + 0x14], 0x10
jb 0x40b923
mov ecx, dword [ecx]
push eax
mov eax, dword [ebp - 0x44]
movzx eax, ax
push eax
push ecx
push str.____s:_d____s__n
call fcn.0040ae50
mov edx, dword [ebp - 0x54]
add esp, 0x10
cmp edx, 0x10
jb 0x40b96d
mov ecx, dword [ebp - 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b963
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b9e6
push edx
push ecx
call fcn.004449d2
add esp, 8
push dword [ebp - 0x48]
call fcn.00444a03
mov edx, dword [ebp - 0x18]
add esp, 4
cmp edx, 0x10
jb 0x40b9a8
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b99e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b9eb
push edx
push ecx
call fcn.004449d2
add esp, 8
mov ebx, dword [ebp - 0x34]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push ebx
call esi
push dword [ebp - 0x4c]
call esi
push dword [ebp - 0x50]
call esi
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.00444991
mov esp, ebp
pop ebp
ret 8
call fcn.0045abc1
call fcn.0045abc1
call fcn.0045abc1
call fcn.0045abc1
int3