Function at 0x408520
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b4ae
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x48f244]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb0], ecx
mov eax, dword [ebp + 0x14]
mov esi, 0xf
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xb8], edi
mov dword [ebp - 0x98], eax
xor eax, eax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0xbc], edi
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x28], al
mov dword [ebp - 4], eax
mov ecx, edx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x40], al
lea eax, [ecx + 1]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0xa0], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4085b6
sub ecx, dword [ebp - 0xa0]
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00405800
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.00405280
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x408614
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40860a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408aa5
push edx
push ecx
call fcn.00439095
add esp, 8
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
test edx, edx
jne 0x408634
xor ecx, ecx
jmp 0x4086ad
mov ecx, edx
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
lea eax, [ecx + 1]
mov dword [ebp - 0xa0], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408658
sub ecx, dword [ebp - 0xa0]
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.00405800
mov byte [ebp - 4], 4
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x88]
mov dword [ebp - 0xb4], 1
call fcn.00405280
mov ecx, eax
mov dword [ebp - 4], 5
mov eax, 3
cmp dword [ecx + 0x14], 8
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0xb4], eax
jb 0x4086ad
mov ecx, dword [ecx]
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
push 1
cmovae eax, dword [ebp - 0x70]
push ecx
push ecx
push dword [ebp - 0x9c]
mov ecx, dword [ebp - 0xb0]
push dword [ebp + 0x10]
push eax
call fcn.00409cd0
test al, al
mov eax, dword [ebp - 0x8c]
sete byte [ebp - 0x91]
test al, 2
je 0x4086fe
and eax, 0xfffffffd
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x8c], eax
call fcn.004054a0
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 4], 3
test al, 1
je 0x40873d
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x40873d
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408733
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408aaa
push edx
push ecx
call fcn.00439095
add esp, 8
cmp byte [ebp - 0x91], 0
je 0x40877a
movups xmm0, xmmword [ebp - 0x28]
mov dword [edi], 0
lea ecx, [ebp - 0x70]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [edi + 0x10], xmm0
call fcn.004054a0
mov eax, edi
jmp 0x408a78
push 0x1000
call fcn.00447d93
add esp, 4
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0xac]
push eax
mov eax, dword [ebp - 0xb0]
push dword [eax + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov edi, dword [ebp - 0x28]
test eax, eax
je 0x408a21
mov dword [ebp - 0x8c], edi
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x408a95
cmp eax, 0x1000
jbe 0x4087fa
push dword [ebp - 0x90]
call fcn.00447d78
push dword [ebp - 0xac]
call fcn.00447d93
mov dword [ebp - 0x90], eax
add esp, 8
mov eax, dword [ebp - 0xac]
lea ecx, [ebp - 0xb8]
push ecx
push eax
mov eax, dword [ebp - 0xb0]
push dword [ebp - 0x90]
push dword [eax + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x408a21
mov edx, dword [ebp - 0xa8]
mov eax, esi
mov ecx, dword [ebp - 0xb8]
sub eax, edx
mov dword [ebp - 0xa4], ecx
cmp ecx, eax
ja 0x408879
lea eax, [ecx + edx]
cmp esi, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, edi
push ecx
push dword [ebp - 0x90]
lea esi, [eax + edx]
push esi
call fcn.00444600
mov eax, dword [ebp - 0xa4]
add esp, 0xc
mov byte [esi + eax], 0
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0xa8], eax
jmp 0x4089fd
mov eax, closesocket
mov dword [ebp - 0x98], edx
sub eax, edx
cmp eax, ecx
jb 0x408ab4
lea eax, [ecx + edx]
mov edi, esi
mov esi, eax
mov dword [ebp - 0xa8], eax
or esi, 0xf
mov dword [ebp - 0x9c], edi
cmp esi, 0x7fffffff
jbe 0x4088b6
mov esi, closesocket
lea eax, [esi + 0x24]
jmp 0x4088f4
shr edi, 1
mov eax, closesocket
sub eax, edi
cmp dword [ebp - 0x9c], eax
jbe 0x4088d1
mov esi, closesocket
lea eax, [esi + 0x24]
jmp 0x4088f4
mov eax, dword [ebp - 0x9c]
add eax, edi
cmp esi, eax
cmovb esi, eax
lea edi, [esi + 1]
cmp edi, 0x1000
jb 0x40891c
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x408aaf
push eax
call fcn.00439065
add esp, 4
test eax, eax
je 0x408aa5
mov ecx, dword [ebp - 0xa4]
lea edi, [eax + 0x23]
mov edx, dword [ebp - 0x98]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x40893b
test edi, edi
je 0x408939
push edi
call fcn.00439065
mov ecx, dword [ebp - 0xa4]
add esp, 4
mov edx, dword [ebp - 0x98]
mov edi, eax
jmp 0x40893b
xor edi, edi
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x18], eax
lea eax, [edi + edx]
mov dword [ebp - 0x98], eax
lea eax, [ecx + edi]
add eax, edx
mov dword [ebp - 0x14], esi
cmp dword [ebp - 0x9c], 0x10
mov dword [ebp - 0xa0], eax
push edx
jb 0x4089cc
push dword [ebp - 0x8c]
push edi
call fcn.00444600
mov eax, dword [ebp - 0xa4]
push eax
push dword [ebp - 0x90]
push dword [ebp - 0x98]
call fcn.00444600
mov eax, dword [ebp - 0xa0]
add esp, 0x18
mov edx, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0x8c]
inc edx
mov byte [eax], 0
mov eax, ecx
cmp edx, 0x1000
jb 0x4089c0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408aa5
push edx
push ecx
call fcn.00439095
add esp, 8
jmp 0x4089fa
lea eax, [ebp - 0x28]
push eax
push edi
call fcn.00444600
mov eax, dword [ebp - 0xa4]
push eax
push dword [ebp - 0x90]
push dword [ebp - 0x98]
call fcn.00444600
mov eax, dword [ebp - 0xa0]
add esp, 0x18
mov byte [eax], 0
mov dword [ebp - 0x28], edi
lea eax, [ebp - 0xac]
mov dword [ebp - 0x8c], edi
push eax
mov eax, dword [ebp - 0xb0]
push dword [eax + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x4087c0
mov eax, dword [ebp - 0x90]
push eax
call fcn.00447d78
add esp, 4
mov dword [ebp - 0x18], 0
cmp esi, 0x10
lea eax, [ebp - 0x28]
cmovae eax, edi
mov byte [eax], 0
mov esi, dword [ebp - 0xbc]
lea ecx, [ebp - 0x70]
movups xmm0, xmmword [ebp - 0x28]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
call fcn.004054a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004390b1
mov esp, ebp
pop ebp
ret 0x18
push dword [ebp - 0x90]
call fcn.00447d78
add esp, 4
jmp 0x408a43
call fcn.004480ba
call fcn.004480ba
call fcn.00405680
call fcn.00405500
int3