Function at 0x411bc0
Capabilities:
Prepare http request
Read http header
Receive http response

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469088
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x298
mov eax, dword [0x4c700c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x238], esi
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov edi, dword [ebx + 0x10]
mov dword [ebp - 0x28c], esi
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [ebp - 0x240], edx
mov dword [ebp - 0x23c], eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0xf
mov byte [esi + 0xc], 0
lea ecx, [esi + 0x24]
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
mov byte [ebp - 4], 1
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x5c], eax
lea eax, [edx + 2]
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x4c], edi
mov dword [ebp - 0x21c], eax
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x411ca0
sub edx, dword [ebp - 0x21c]
sar edx, 1
push edx
push dword [ebp - 0x240]
call fcn.0040be10
push dword [ebp - 0x240]
mov ecx, esi
call fcn.00411690
test al, al
jne 0x411ce3
push 0
push str.GetSession_failed
mov ecx, esi
call fcn.00411480
jmp 0x411df7
push 0x800000
push 0
push 0
push 0
push dword [esi + 0x54]
push 0x4bd5b0
push dword [esi + 0x44]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 0x48], eax
test eax, eax
jne 0x411d1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenGetRequest_failed
mov ecx, esi
call fcn.00411480
jmp 0x411df7
push 4
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x238], esi
push ecx
push 0x2d
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push 0
push 0x4000
push 0x411b20
push dword [esi + 0x48]
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
mov edx, dword [ebp - 0x23c]
lea ecx, [ebp - 0x234]
push 0
call fcn.00411840
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x224]
mov ecx, eax
neg ecx
sbb ecx, ecx
test eax, eax
je 0x411d8b
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
jmp 0x411d8d
xor eax, eax
push 0
push 0
push 0
push 0
push ecx
push eax
push dword [esi + 0x48]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x411e19
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SendRequest_failed
mov ecx, esi
call fcn.00411480
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x411df7
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411ded
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41224e
push edx
push ecx
call fcn.00449563
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004490d7
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
push 0
push dword [esi + 0x48]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x411e39
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReceiveResponse_failed
jmp 0x411db0
xor eax, eax
mov dword [ebp - 0x21c], 0x200
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0x13
push dword [esi + 0x48]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x411e7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryHeaders_status_code_failed
jmp 0x411db0
lea eax, [esi + 0x58]
mov dword [eax], 0
push eax
lea eax, [ebp - 0x218]
push 0x4bd61c
push eax
call fcn.00401270
mov ecx, dword [esi + 0x58]
add esp, 0xc
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jb 0x411eb4
push ecx
push str.ResponseCode_indicated_failure
jmp 0x411db0
xor eax, eax
mov dword [ebp - 0x21c], 0x100
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 5
push dword [esi + 0x48]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x411f0b
push esi
lea eax, [ebp - 0x218]
push str._I64d
push eax
call fcn.00401270
add esp, 0xc
test edi, edi
je 0x411f0b
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
xor edi, edi
nop dword [eax]
xor eax, eax
mov dword [ebp - 0x21c], 0x100
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [edi + 0x4972b4]
push 0xffff
push dword [esi + 0x48]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x412200
mov edx, dword [edi + 0x4972b4]
xor eax, eax
mov dword [ebp - 0x288], 0
mov word [ebp - 0x288], ax
mov eax, edx
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x274], 7
lea ecx, [eax + 2]
mov dword [ebp - 0x23c], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411f86
sub eax, dword [ebp - 0x23c]
lea ecx, [ebp - 0x288]
sar eax, 1
push eax
push edx
call fcn.0040be10
push 2
push 0x4bd4f4
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 3
call fcn.0040c240
mov dword [ebp - 0x270], 0
xor ecx, ecx
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x270], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x260], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 4
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412011
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x270]
call fcn.0040c240
mov dword [ebp - 0x258], 0
xor ecx, ecx
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x258], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x248], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 5
lea edx, [ebp - 0x258]
cmp dword [ebp - 0x244], 8
lea ecx, [ebp - 0x2a4]
cmovae edx, dword [ebp - 0x258]
call fcn.0040eba0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x2a4]
cmp dword [ebp - 0x290], 0x10
mov ecx, esi
push 0
cmovae eax, dword [ebp - 0x2a4]
push eax
call fcn.00411480
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x290]
cmp edx, 0x10
jb 0x4120fe
mov ecx, dword [ebp - 0x2a4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4120f4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41224e
push edx
push ecx
call fcn.00449563
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x244]
cmp edx, 8
jb 0x412142
mov ecx, dword [ebp - 0x258]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412138
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41224e
push edx
push ecx
call fcn.00449563
add esp, 8
xor eax, eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x25c]
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 7
mov word [ebp - 0x258], ax
cmp edx, 8
jb 0x4121a3
mov ecx, dword [ebp - 0x270]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412199
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41224e
push edx
push ecx
call fcn.00449563
add esp, 8
xor eax, eax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x274]
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 7
mov word [ebp - 0x270], ax
cmp edx, 8
jb 0x412200
mov ecx, dword [ebp - 0x288]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4121f6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41224e
push edx
push ecx
call fcn.00449563
add esp, 8
add edi, 4
cmp edi, 0x18
jb 0x411f10
mov edx, dword [ebp - 0x220]
mov byte [esi + 8], 1
cmp edx, 8
jb 0x411df7
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411ded
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x411ded
call fcn.00458a87
int3