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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a3d8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x44a1b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ecx, ecx
xor esi, esi
xor edi, edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
mov ebx, dword [eax]
mov eax, dword [eax + 4]
cmp ebx, eax
je 0x41296b
mov ecx, eax
sub ecx, eax
push ecx
push eax
push ebx
mov dword [ebp - 0x20], ecx
call fcn.0041e570
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x10]
add eax, ebx
add esp, 0xc
mov dword [ecx + 4], eax
xor ecx, ecx
mov ebx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x20]
push eax
push ecx
push 0x20000005
push ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], 4
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
lea ecx, [ebp - 0x1c]
push ecx
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x412b9a
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x412b9a
cmp ebx, 0x2000
jbe 0x4129b9
mov ebx, 0x2000
mov ecx, edi
sub ecx, esi
mov dword [ebp - 0x18], 0
cmp ebx, ecx
je 0x412a42
jae 0x4129dc
lea eax, [esi + ebx]
cmp eax, edi
je 0x412a42
push 0
push edi
push eax
call fcn.0041e570
jmp 0x412a37
cmp ecx, ebx
jae 0x412a42
mov eax, esi
sub eax, edi
add eax, ebx
or edx, 0xffffffff
sub edx, eax
cmp edx, ecx
jb 0x412bc3
add ecx, eax
mov eax, dword [ebp - 0x34]
sub eax, esi
cmp ecx, eax
jbe 0x412a26
mov edx, eax
shr edx, 1
or esi, 0xffffffff
sub esi, edx
cmp esi, eax
jae 0x412a0f
xor eax, eax
jmp 0x412a11
add eax, edx
cmp eax, ecx
jae 0x412a17
mov eax, ecx
push eax
lea esi, [ebp - 0x3c]
call fcn.00406d40
mov esi, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x38]
mov eax, esi
sub eax, edi
add eax, ebx
je 0x412a3a
push eax
push 0
push edi
call fcn.004212f0
add esp, 0xc
lea eax, [esi + ebx]
mov dword [ebp - 0x38], eax
mov edi, eax
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push ecx
push ebx
push esi
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x412b9a
cmp dword [ebp - 0x18], 0
je 0x412b1b
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov ebx, ecx
sub ebx, edx
sub edi, esi
add edi, ebx
cmp ebx, edi
jbe 0x412a9b
add edi, edx
cmp edi, ecx
je 0x412b03
mov esi, ecx
sub esi, ecx
push esi
push ecx
push edi
call fcn.0041e570
mov eax, dword [ebp + 0x10]
add esp, 0xc
add esi, edi
mov dword [eax + 4], esi
jmp 0x412b00
jae 0x412b03
mov eax, edx
sub eax, ecx
add eax, edi
or esi, 0xffffffff
mov ecx, ebx
sub esi, eax
cmp esi, ecx
jb 0x412bc3
mov esi, dword [ebp + 0x10]
add ecx, eax
mov eax, dword [esi + 8]
sub eax, edx
cmp ecx, eax
jbe 0x412ae2
mov edx, eax
shr edx, 1
or esi, 0xffffffff
sub esi, edx
cmp esi, eax
jae 0x412ad1
xor eax, eax
jmp 0x412ad3
add eax, edx
cmp eax, ecx
jae 0x412ad9
mov eax, ecx
mov esi, dword [ebp + 0x10]
push eax
call fcn.00406d40
mov ecx, dword [esi + 4]
mov eax, dword [esi]
sub eax, ecx
add eax, edi
je 0x412af9
push eax
push 0
push ecx
call fcn.004212f0
add esp, 0xc
mov ecx, dword [esi]
add ecx, edi
mov dword [esi + 4], ecx
mov esi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push edx
add ecx, ebx
push esi
push ecx
call fcn.00421370
mov edi, dword [ebp - 0x38]
add esp, 0xc
mov edx, dword [ebp + 8]
cmp dword [edx + 0x54], 0
je 0x412b84
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x412b77
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ecx + 4]
sub ebx, dword [ecx]
mov dword [ebp - 0x28], ebx
fild dword [ebp - 0x28]
jns 0x412b41
fadd qword [0x4454f8]
mov dword [ebp - 0x28], eax
fild dword [ebp - 0x28]
test eax, eax
jns 0x412b51
fadd qword [0x4454f8]
fdivp st(1)
fmul qword [0x4454f0]
fnstcw word [ebp - 0x12]
movzx eax, word [ebp - 0x12]
or eax, 0xc00
mov dword [ebp - 0x28], eax
fldcw word [ebp - 0x28]
fistp qword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
fldcw word [ebp - 0x12]
mov dword [ebp - 0x14], eax
mov ecx, dword [edx + 0x54]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x14]
mov edx, dword [edx]
push eax
call edx
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x4129a1
cmp dword [ebp - 0x20], 0
jne 0x412bcd
test esi, esi
je 0x412bad
push esi
call fcn.0041e13f
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push str.vector_T__too_long
call fcn.0041dcf9
cmp dword [ebp - 0x14], 0x64
sete bl
test esi, esi
je 0x412be1
push esi
call fcn.0041e13f
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc