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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e37d3
mov eax, dword fs:[0]
push eax
mov eax, 0x210c
call fcn.004a1c50
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.004b98e0
add esp, 4
mov dword [ebp - 0x2060], 0
lea ecx, [ebp - 0x2118]
call fcn.00404d30
mov dword [ebp - 4], 0
cmp dword [esi + 0xd4], 0
jne 0x410239
push 0
push 0
push 0
push 0
jmp 0x410259
cmp dword [esi + 0xd8], 0x10
lea eax, [esi + 0xc4]
jb 0x41024a
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 0x41066a
push 0
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x410286
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41066a
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 0x410535
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.004a0a29
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 0x41066a
xor eax, eax
mov dword [ebp - 0x202c], 7
mov dword [ebp - 0x2030], 0
mov word [ebp - 0x2040], ax
cmp word [edi], ax
jne 0x41031b
xor ecx, ecx
jmp 0x41032f
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410320
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x2040]
call fcn.00403e20
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.00403e20
lea ecx, [esi + 0x114]
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2040]
cmp ecx, eax
je 0x41038d
push 0xffffffffffffffff
push 0
push eax
call fcn.00403ab0
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.00410910
mov dword [ebp - 0x2068], eax
cmp eax, 0xffffffff
je 0x4104d9
add eax, edi
lea ecx, [ebp - 0x2040]
push 2
push eax
push 0x507b08
mov dword [ebp - 0x2064], eax
call fcn.00410910
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4104a2
push 1
push dword [ebp - 0x2064]
lea ecx, [ebp - 0x2040]
push 0x507b10
call fcn.00410910
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.00410760
mov byte [ebp - 4], 3
cmp dword [ebp - 0x2048], 0
je 0x41047a
mov edi, dword [esi + 0x10c]
lea eax, [ebp - 0x2058]
push eax
push dword [edi + 4]
push edi
call fcn.00411060
mov edx, eax
mov ecx, 0x7fffffe
mov eax, dword [esi + 0x110]
sub ecx, eax
cmp ecx, 1
jb 0x4106b3
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 0x41049c
inc eax
lea ecx, [ebp - 0x2058]
push eax
push dword [ebp - 0x2058]
call fcn.00403f90
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.00410910
mov dword [ebp - 0x2068], eax
cmp eax, 0xffffffff
jne 0x4103c5
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov eax, dword [ebp - 0x2014]
cmp eax, 8
jb 0x4104f7
inc eax
lea ecx, [ebp - 0x2028]
push eax
push dword [ebp - 0x2028]
call fcn.00403f90
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 0x410535
inc eax
lea ecx, [ebp - 0x2040]
push eax
push dword [ebp - 0x2040]
call fcn.00403f90
push 0x18
call fcn.004a0a29
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 0x410564
push edi
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
mov dword [esi + 0x12c], eax
push edi
call fcn.004a0a18
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 0x41066a
mov edi, dword [ebp - 0x205c]
test edi, edi
je 0x41066a
push 0x2000
lea eax, [ebp - 0x2010]
push 0
push eax
call fcn.004b98e0
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 0x41066a
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.00409af0
lea edx, [ebp - 0x2028]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2108]
call fcn.00406390
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2014]
cmp eax, 0x10
jb 0x410654
inc eax
lea ecx, [ebp - 0x2028]
push eax
push dword [ebp - 0x2028]
call fcn.004099a0
cmp dword [ebp - 0x2060], 0
je 0x41066a
cmp dword [ebp - 0x205c], 0
ja 0x410580
lea eax, [ebp - 0x2058]
push eax
lea ecx, [ebp - 0x2118]
call fcn.00404c20
mov ebx, eax
lea edi, [esi + 0xf4]
cmp edi, ebx
je 0x4106ca
mov eax, dword [edi + 0x14]
cmp eax, 0x10
jb 0x41069b
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.004099a0
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x4106bd
mov eax, dword [edi]
jmp 0x4106bf
push str.list_T__too_long
call fcn.0049cede
mov eax, edi
push ebx
mov ecx, edi
mov byte [eax], 0
call fcn.00407660
mov eax, dword [ebp - 0x2044]
cmp eax, 0x10
jb 0x4106e8
inc eax
lea ecx, [ebp - 0x2058]
push eax
push dword [ebp - 0x2058]
call fcn.004099a0
xor ebx, ebx
lea ecx, [ebp - 0x20b0]
cmp dword [esi + 0x104], ebx
setne bl
call fcn.00404c40
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.0049cfc7
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.004a04d5
mov esp, ebp
pop ebp
ret 4