Function at 0x41a6e0
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 0x471368
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x298
mov eax, dword [0x4d100c]
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 ecx, 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], ecx
mov dword [ebp - 0x23c], eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0xf
mov byte [esi + 0xc], 0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [esi + 0x24], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 7
mov word [esi + 0x24], 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, [ecx + 2]
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x4c], edi
mov dword [ebp - 0x21c], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a7c0
sub ecx, dword [ebp - 0x21c]
sar ecx, 1
push ecx
push dword [ebp - 0x240]
lea ecx, [esi + 0x24]
call fcn.00411b40
push dword [ebp - 0x240]
mov ecx, esi
call fcn.0041a1a0
test al, al
jne 0x41a819
cmp dword [esi + 0x1c], 0
lea edi, [esi + 0xc]
je 0x41a808
push 0x4c7bf0
mov ecx, edi
call fcn.00411d70
push str.GetSession_failed
mov ecx, edi
call fcn.00411d70
jmp 0x41a92d
push 0x800000
push 0
push 0
push 0
push dword [esi + 0x54]
push 0x4c7f08
push dword [esi + 0x44]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 0x48], eax
test eax, eax
jne 0x41a854
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenGetRequest_failed
mov ecx, esi
call fcn.00419fa0
jmp 0x41a92d
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 0x41a640
push dword [esi + 0x48]
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
mov edx, dword [ebp - 0x23c]
lea ecx, [ebp - 0x234]
push 0
call fcn.0041a370
add esp, 4
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x224]
mov ecx, eax
neg ecx
sbb ecx, ecx
test eax, eax
je 0x41a8c1
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
jmp 0x41a8c3
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 0x41a94f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SendRequest_failed
mov ecx, esi
call fcn.00419fa0
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x41a92d
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a923
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41adab
push edx
push ecx
call fcn.00451449
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.00450db2
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 0x41a96f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReceiveResponse_failed
jmp 0x41a8e6
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 0x41a9b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryHeaders_status_code_failed
jmp 0x41a8e6
lea eax, [esi + 0x58]
mov dword [eax], 0
push eax
lea eax, [ebp - 0x218]
push 0x4c7f74
push eax
call fcn.00401420
mov ecx, dword [esi + 0x58]
add esp, 0xc
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jb 0x41a9ea
push ecx
push str.ResponseCode_indicated_failure
jmp 0x41a8e6
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 0x41aa41
push esi
lea eax, [ebp - 0x218]
push str._I64d
push eax
call fcn.00401420
add esp, 0xc
test edi, edi
je 0x41aa41
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
xor edi, edi
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 + 0x49f8fc]
push 0xffff
push dword [esi + 0x48]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x41ad5d
mov edx, dword [edi + 0x49f8fc]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x288], 0
mov word [ebp - 0x288], ax
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x274], 7
lea eax, [ecx + 2]
mov dword [ebp - 0x23c], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41aac0
sub ecx, dword [ebp - 0x23c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x288]
call fcn.00411b40
push 2
push 0x4c7e4c
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 7
call fcn.00412220
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], 8
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41ab50
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x270]
call fcn.00412220
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], 9
lea edx, [ebp - 0x258]
cmp dword [ebp - 0x244], 8
lea ecx, [ebp - 0x2a4]
cmovae edx, dword [ebp - 0x258]
call fcn.00417a90
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x2a4]
cmp dword [ebp - 0x290], 0x10
cmovae eax, dword [ebp - 0x2a4]
cmp dword [esi + 0x1c], 0
mov dword [ebp - 0x23c], eax
je 0x41ac14
push 0x4c7bf0
lea ecx, [esi + 0xc]
call fcn.00411d70
mov eax, dword [ebp - 0x23c]
push eax
lea ecx, [esi + 0xc]
call fcn.00411d70
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x290]
cmp edx, 0x10
jb 0x41ac5b
mov ecx, dword [ebp - 0x2a4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41ac51
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41adab
push edx
push ecx
call fcn.00451449
add esp, 8
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x244]
cmp edx, 8
jb 0x41ac9f
mov ecx, dword [ebp - 0x258]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41ac95
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41adab
push edx
push ecx
call fcn.00451449
add esp, 8
xor eax, eax
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x25c]
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 7
mov word [ebp - 0x258], ax
cmp edx, 8
jb 0x41ad00
mov ecx, dword [ebp - 0x270]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41acf6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41adab
push edx
push ecx
call fcn.00451449
add esp, 8
xor eax, eax
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x274]
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 7
mov word [ebp - 0x270], ax
cmp edx, 8
jb 0x41ad5d
mov ecx, dword [ebp - 0x288]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41ad53
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41adab
push edx
push ecx
call fcn.00451449
add esp, 8
add edi, 4
cmp edi, 0x18
jb 0x41aa43
mov edx, dword [ebp - 0x220]
mov byte [esi + 8], 1
cmp edx, 8
jb 0x41a92d
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a923
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41a923
call fcn.00460976
int3