Function at 0x40f9e0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475a78
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x497644]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edi, ecx
cmp dword [edi + 0x18], 8
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x44], ebx
mov dword [edi + 0x14], ebx
jb 0x40fa29
mov eax, dword [edi + 4]
jmp 0x40fa2c
lea eax, [edi + 4]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x28]
lea edx, [ebp - 0x38]
push edx
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x40fb9d
mov eax, dword [ebp - 0x38]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00439f40
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x40fbb1
mov eax, dword [ebp - 0x38]
inc eax
push eax
push ebx
push esi
call fcn.00445dc0
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
add esp, 0xc
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [eax + 0x28]
push edx
push esi
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x40fbd1
mov dword [ebp - 0x34], ebx
push 8
mov dword [ebp - 4], ebx
call fcn.0043c350
add esp, 4
cmp eax, ebx
je 0x40fbdf
mov dword [ebp - 0x34], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x34]
mov dword [eax], edx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], cx
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x38]
push edx
mov eax, esi
lea ecx, [ebp - 0x34]
call fcn.00409600
push ebx
lea eax, [ebp - 0x34]
push eax
or eax, 0xffffffff
call fcn.00409550
mov eax, dword [ebp - 0x30]
mov ecx, 8
mov dword [ebp - 0x20], ebx
cmp dword [ebp - 0x1c], ecx
jae 0x40fb0d
lea eax, [ebp - 0x30]
xor edx, edx
mov word [eax], dx
cmp dword [ebp - 0x1c], ecx
jb 0x40fb23
mov eax, dword [ebp - 0x30]
push eax
call fcn.0043c1d0
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], cx
mov dword [ebp - 4], 2
cmp dword [ebp - 0x34], ebx
je 0x40fb71
push 3
lea ecx, [ebp - 0x40]
call fcn.00439ed0
mov eax, dword [ebp - 0x34]
cmp dword [eax + 4], ebx
je 0x40fb63
mov edx, dword [eax + 4]
mov dword [edx], ebx
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
cmp edx, ebx
jne 0x40fb51
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x40]
mov dword [eax + 4], ebx
call fcn.00439f10
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.0043c1d0
push esi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], 0xffffffff
call fcn.0043c1b0
add esp, 8
cmp dword [ebp - 0x38], ebx
ja 0x40fa31
mov eax, 1
jmp 0x40fbb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_in_WinHttpQueryDataAvailable._n
call fcn.0040f1a0
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043bb50
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_in_WinHttpReadData._n
jmp 0x40fba9
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x48], ebx
call fcn.0043bb90
push 0x491a28
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x54], vtable.std::bad_alloc.0
call fcn.004459f0
int3