Function at 0x410040
Capabilities:
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2ed3
mov eax, dword fs:[0]
push eax
mov eax, 0x210c
call fcn.004a1390
mov eax, dword [0x52610c]
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 esi, ecx
push 0x2000
lea eax, [ebp - 0x2010]
push 0
push eax
call fcn.004b8fe0
add esp, 4
mov dword [ebp - 0x2060], 0
lea ecx, [ebp - 0x2118]
call fcn.00404ce0
mov dword [ebp - 4], 0
cmp dword [esi + 0xd4], 0
jne 0x4100b9
push 0
push 0
push 0
push 0
jmp 0x4100d9
cmp dword [esi + 0xd8], 0x10
lea eax, [esi + 0xc4]
jb 0x4100ca
mov eax, dword [eax]
push 0
push dword [esi + 0xd4]
push dword [esi + 0xd4]
push eax
push 0
push 0
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x4104ea
push 0
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x410106
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4104ea
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
lea eax, [ebp - 0x205c]
push 0
push eax
push 0
push 0
push 0x16
push dword [esi]
mov dword [ebp - 0x205c], 0
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4103b5
mov eax, dword [ebp - 0x205c]
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a01a9
add esp, 4
mov edi, eax
lea eax, [ebp - 0x205c]
push 0
push eax
push edi
push 0
push 0x16
push dword [esi]
call ebx
test eax, eax
je 0x4104ea
xor eax, eax
mov dword [ebp - 0x202c], 7
mov dword [ebp - 0x2030], 0
mov word [ebp - 0x2040], ax
cmp word [edi], ax
jne 0x41019b
xor ecx, ecx
jmp 0x4101af
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4101a0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x2040]
call fcn.00403dd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2028]
push 0xb
xor eax, eax
mov dword [ebp - 0x2014], 7
push str.Set_Cookie:
mov dword [ebp - 0x2018], 0
mov word [ebp - 0x2028], ax
call fcn.00403dd0
lea ecx, [esi + 0x114]
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2040]
cmp ecx, eax
je 0x41020d
push 0xffffffffffffffff
push 0
push eax
call fcn.00403a60
cmp dword [ebp - 0x2014], 8
lea eax, [ebp - 0x2028]
mov edi, dword [ebp - 0x2018]
lea ecx, [ebp - 0x2040]
cmovae eax, dword [ebp - 0x2028]
push edi
push 0
push eax
call fcn.00410790
mov dword [ebp - 0x2068], eax
cmp eax, 0xffffffff
je 0x410359
add eax, edi
lea ecx, [ebp - 0x2040]
push 2
push eax
push 0x507b08
mov dword [ebp - 0x2064], eax
call fcn.00410790
mov ebx, eax
cmp ebx, 0xffffffff
je 0x410322
push 1
push dword [ebp - 0x2064]
lea ecx, [ebp - 0x2040]
push 0x507b10
call fcn.00410790
cmp eax, ebx
lea ecx, [ebp - 0x2040]
cmovl ebx, eax
mov eax, ebx
sub eax, edi
sub eax, dword [ebp - 0x2068]
dec eax
push eax
mov eax, dword [ebp - 0x2064]
inc eax
push eax
lea eax, [ebp - 0x2058]
push eax
call fcn.004105e0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x2048], 0
je 0x4102fa
mov edi, dword [esi + 0x10c]
lea eax, [ebp - 0x2058]
push eax
push dword [edi + 4]
push edi
call fcn.00410ee0
mov edx, eax
mov ecx, 0x7fffffe
mov eax, dword [esi + 0x110]
sub ecx, eax
cmp ecx, 1
jb 0x410533
lea ecx, [eax + 1]
mov dword [esi + 0x110], ecx
mov dword [edi + 4], edx
mov eax, dword [edx + 4]
mov dword [eax], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2044]
cmp eax, 8
jb 0x41031c
inc eax
lea ecx, [ebp - 0x2058]
push eax
push dword [ebp - 0x2058]
call fcn.00403f40
mov edi, dword [ebp - 0x2018]
cmp dword [ebp - 0x2014], 8
lea eax, [ebp - 0x2028]
push edi
cmovae eax, dword [ebp - 0x2028]
lea ecx, [ebp - 0x2040]
push ebx
push eax
call fcn.00410790
mov dword [ebp - 0x2068], eax
cmp eax, 0xffffffff
jne 0x410245
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov eax, dword [ebp - 0x2014]
cmp eax, 8
jb 0x410377
inc eax
lea ecx, [ebp - 0x2028]
push eax
push dword [ebp - 0x2028]
call fcn.00403f40
xor eax, eax
mov dword [ebp - 0x2014], 7
mov word [ebp - 0x2028], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x202c]
mov dword [ebp - 0x2018], 0
cmp eax, 8
jb 0x4103b5
inc eax
lea ecx, [ebp - 0x2040]
push eax
push dword [ebp - 0x2040]
call fcn.00403f40
push 0x18
call fcn.004a01a9
add esp, 4
mov edi, eax
lea eax, [ebp - 0x205c]
push 0
push eax
push edi
push 0
push 0x13
push dword [esi]
call ebx
test eax, eax
je 0x4103e4
push edi
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
mov dword [esi + 0x12c], eax
push edi
call fcn.004a0198
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
add esp, 4
nop dword [eax]
nop word [eax + eax]
lea eax, [ebp - 0x205c]
mov dword [ebp - 0x205c], 0
push eax
push dword [esi]
mov dword [ebp - 0x2060], 0
call ebx
test eax, eax
je 0x4104ea
mov edi, dword [ebp - 0x205c]
test edi, edi
je 0x4104ea
push 0x2000
lea eax, [ebp - 0x2010]
push 0
push eax
call fcn.004b8fe0
add esp, 0xc
lea eax, [ebp - 0x2060]
push eax
push edi
lea eax, [ebp - 0x2010]
push eax
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x4104ea
push dword [ebp - 0x2060]
lea eax, [ebp - 0x2010]
mov dword [ebp - 0x2014], 0xf
push eax
lea ecx, [ebp - 0x2028]
mov dword [ebp - 0x2018], 0
mov byte [ebp - 0x2028], 0
call fcn.00409aa0
lea edx, [ebp - 0x2028]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2108]
call fcn.00406340
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2014]
cmp eax, 0x10
jb 0x4104d4
inc eax
lea ecx, [ebp - 0x2028]
push eax
push dword [ebp - 0x2028]
call fcn.00409950
cmp dword [ebp - 0x2060], 0
je 0x4104ea
cmp dword [ebp - 0x205c], 0
ja 0x410400
lea eax, [ebp - 0x2058]
push eax
lea ecx, [ebp - 0x2118]
call fcn.00404bd0
mov ebx, eax
lea edi, [esi + 0xf4]
cmp edi, ebx
je 0x41054a
mov eax, dword [edi + 0x14]
cmp eax, 0x10
jb 0x41051b
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.00409950
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x41053d
mov eax, dword [edi]
jmp 0x41053f
push str.list_T__too_long
call fcn.0049c65e
mov eax, edi
push ebx
mov ecx, edi
mov byte [eax], 0
call fcn.00407610
mov eax, dword [ebp - 0x2044]
cmp eax, 0x10
jb 0x410568
inc eax
lea ecx, [ebp - 0x2058]
push eax
push dword [ebp - 0x2058]
call fcn.00409950
xor ebx, ebx
lea ecx, [ebp - 0x20b0]
cmp dword [esi + 0x104], ebx
setne bl
call fcn.00404bf0
lea eax, [ebp - 0x20b0]
mov dword [ebp - 4], 6
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0049c747
add esp, 4
mov eax, ebx
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.0049fc55
mov esp, ebp
pop ebp
ret 4