Function at 0x406bf0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x5b7780]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x406c30
jmp 0x406ddc
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x406c58
jmp 0x406dd4
cmp dword [ebp - 0xc], 0
jne 0x406c6a
mov dword [ebp - 0x1c], 1
jmp 0x406dd4
mov edx, dword [ebp - 0xc]
push edx
call fcn.00511700
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x406c8a
jmp 0x406dd4
mov ecx, dword [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
call fcn.00516d90
add esp, 0xc
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x406cc5
jmp 0x406dd4
cmp dword [ebp - 8], 0
jne 0x406cd0
jmp 0x406dd4
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0xc]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.00511700
add esp, 4
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
jne 0x406cf9
jmp 0x406dd4
mov edx, dword [ebp - 0x28]
push edx
push 0
mov eax, dword [ebp - 0x20]
push eax
call fcn.00516d90
add esp, 0xc
cmp dword [ebp - 0x14], 0
je 0x406d5e
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00518d43
add esp, 0x10
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
push eax
call fcn.00518d3e
add esp, 4
cmp dword [ebp - 0x30], 0
jne 0x406d4a
mov dword [ebp - 0x38], 0
jmp 0x406d57
mov dword [ebp - 0x14], 0x8123
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x10], 0
je 0x406db7
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x18]
push edx
call fcn.00518d43
add esp, 0x10
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00518d3e
add esp, 4
cmp dword [ebp - 0x2c], 0
jne 0x406da3
mov dword [ebp - 0x40], 0
jmp 0x406db0
mov dword [ebp - 0x10], 0x8123
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0xc], 0
ja 0x406c37
xor edx, edx
jne 0x406c18
cmp dword [ebp - 0x1c], 0
je 0x406df4
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x2c], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00516529
mov esp, ebp
pop ebp
ret