Function at 0x41adc0
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 0x4713f8
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 eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x290], esi
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov byte [esi + 8], 0
mov dword [ebp - 0x23c], eax
mov eax, dword [ebx + 0x14]
mov dword [esi + 0xc], 0
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x25c], 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
mov dword [esi + 0x4c], eax
lea eax, [ecx + 2]
mov dword [esi + 0x58], 0xffffffff
mov dword [ebp - 0x21c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41aea2
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 0x41aefa
cmp dword [esi + 0x1c], 0
je 0x41aee8
push 0x4c7bf0
lea ecx, [esi + 0xc]
call fcn.00411d70
push str.GetSession_failed
lea ecx, [esi + 0xc]
call fcn.00411d70
jmp 0x41b000
push 0x800000
push 0
push 0
push 0
push dword [esi + 0x54]
push str.POST
push dword [esi + 0x44]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 0x48], eax
test eax, eax
jne 0x41af35
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenPostRequest_failed
mov ecx, esi
call fcn.00419fa0
jmp 0x41b000
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 - 0x25c]
lea ecx, [ebp - 0x234]
push 1
call fcn.0041a370
add esp, 4
mov eax, dword [ebx + 0x10]
lea ecx, [ebp - 0x234]
push 0
push eax
push eax
push dword [ebp - 0x23c]
mov byte [ebp - 4], 6
cmp dword [ebp - 0x220], 8
push 0xffffffffffffffff
cmovae ecx, dword [ebp - 0x234]
push ecx
push dword [esi + 0x48]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x41b022
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 0x41b000
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41aff6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b46c
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 0x14
push 0
push dword [esi + 0x48]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x41b042
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReceiveResponse_failed
jmp 0x41afb9
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 0x41b086
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryHeaders_status_code_failed
jmp 0x41afb9
lea edi, [esi + 0x58]
lea eax, [ebp - 0x218]
mov dword [edi], 0
push edi
push 0x4c7f74
push eax
call fcn.00401420
mov ecx, dword [edi]
add esp, 0xc
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jb 0x41b0bc
push ecx
push str.ResponseCode_indicated_failure
jmp 0x41afb9
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 0x41b104
push esi
lea eax, [ebp - 0x218]
push str._I64d
push eax
call fcn.00401420
add esp, 0xc
xor edi, edi
nop word [eax + 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 + 0x49f8fc]
push 0xffff
push dword [esi + 0x48]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x41b41e
mov edx, dword [edi + 0x49f8fc]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x28c], 0
mov word [ebp - 0x28c], ax
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x278], 7
lea eax, [ecx + 2]
mov dword [ebp - 0x23c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b186
sub ecx, dword [ebp - 0x23c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28c]
call fcn.00411b40
push 2
push 0x4c7e4c
lea ecx, [ebp - 0x28c]
mov byte [ebp - 4], 7
call fcn.00412220
mov dword [ebp - 0x274], 0
xor ecx, ecx
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x260], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x274], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x264], 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]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b211
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x274]
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 - 0x2a8]
cmovae edx, dword [ebp - 0x258]
call fcn.00417a90
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x2a8]
cmp dword [ebp - 0x294], 0x10
cmovae eax, dword [ebp - 0x2a8]
cmp dword [esi + 0x1c], 0
mov dword [ebp - 0x23c], eax
je 0x41b2d5
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 - 0x294]
cmp edx, 0x10
jb 0x41b31c
mov ecx, dword [ebp - 0x2a8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41b312
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b46c
push edx
push ecx
call fcn.00451449
add esp, 8
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x244]
cmp edx, 8
jb 0x41b360
mov ecx, dword [ebp - 0x258]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41b356
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b46c
push edx
push ecx
call fcn.00451449
add esp, 8
xor eax, eax
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x260]
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 7
mov word [ebp - 0x258], ax
cmp edx, 8
jb 0x41b3c1
mov ecx, dword [ebp - 0x274]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41b3b7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b46c
push edx
push ecx
call fcn.00451449
add esp, 8
xor eax, eax
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x278]
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x260], 7
mov word [ebp - 0x274], ax
cmp edx, 8
jb 0x41b41e
mov ecx, dword [ebp - 0x28c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41b414
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b46c
push edx
push ecx
call fcn.00451449
add esp, 8
add edi, 4
cmp edi, 0x18
jb 0x41b110
mov edx, dword [ebp - 0x220]
mov byte [esi + 8], 1
cmp edx, 8
jb 0x41b000
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41aff6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41aff6
call fcn.00460976
int3