Function at 0x1000ca70
Capabilities:
Receive http response

Disassembly:
push 0xffffffffffffffff
push 0x10059f41
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x1006c3ac]
xor eax, esp
mov dword [esp + 0x23c], eax
push ebx
push ebp
push esi
mov eax, dword [0x1006c3ac]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
mov eax, dword [edi + 0x24c]
mov ebx, 1
add eax, ebx
push eax
call fcn.1003e829
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x1000cb96
mov ecx, dword [edi + 0x24c]
add ecx, ebx
push ecx
push 0
push ebp
call fcn.10042250
lea esi, [edi + 0x30]
push 0x100601c8
mov edx, esi
call fcn.1000d1e0
mov edx, dword [edi + 0x24c]
mov eax, dword [edi + 0x2c]
add esp, 0x10
push 0
push edx
push ebp
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x1000cb9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str._s:_Error__d_encountered.
lea edx, [esp + 0x58]
call fcn.1000d1e0
add esp, 0xc
xor ecx, ecx
lea eax, [esp + 0x4c]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000cb40
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x50]
lea esi, [esp + 0x14]
call fcn.1000b540
push 0xffffffffffffffff
mov dword [esp + 0x25c], 0
push 0
lea ecx, [edi + 8]
mov eax, esi
mov dword [edi + 4], ebx
call fcn.1000b980
cmp dword [esp + 0x28], 8
jb 0x1000cb8d
mov edx, dword [esp + 0x14]
push edx
call fcn.1003f2c6
add esp, 4
push ebp
call fcn.1004009b
add esp, 4
xor al, al
jmp 0x1000ccf2
mov eax, dword [edi + 0x24c]
add dword [edi + 0x250], eax
push eax
push ebp
lea ecx, [edi + 0x258]
call fcn.1002c770
test al, al
jne 0x1000cc0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str._s:_Error__d_encountered.DataIn.
lea edx, [esp + 0x58]
call fcn.1000d1e0
add esp, 0xc
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x10]
call fcn.1000b630
push 0xffffffffffffffff
mov dword [esp + 0x25c], ebx
push 0
lea ecx, [edi + 8]
lea eax, [esp + 0x18]
mov dword [edi + 4], ebx
call fcn.1000b980
cmp dword [esp + 0x28], 8
jb 0x1000cb8d
mov eax, dword [esp + 0x14]
push eax
jmp 0x1000cb85
push ebp
call fcn.1004009b
mov ecx, dword [edi + 0x254]
add esp, 4
test ecx, ecx
je 0x1000cc37
mov eax, dword [edi + 0x250]
imul eax, eax, 0x64
xor edx, edx
div ecx
cmp eax, 0x63
jb 0x1000cc71
mov eax, 0x63
jmp 0x1000cc71
call fcn.10040520
and eax, 0x80000001
jns 0x1000cc48
dec eax
or eax, 0xfffffffe
inc eax
add eax, dword [edi + 0x27c]
cmp eax, 0x63
jle 0x1000cc5a
mov eax, 0x63
jmp 0x1000cc71
call fcn.10040520
and eax, 0x80000001
jns 0x1000cc6b
dec eax
or eax, 0xfffffffe
inc eax
add eax, dword [edi + 0x27c]
cmp dword [edi + 0x274], 0
mov dword [edi + 0x27c], eax
je 0x1000ccf0
mov edx, dword [edi + 0x280]
mov ecx, eax
mov eax, dword [edi + 0x278]
push ecx
push edx
push ecx
sub eax, 0x10
mov dword [esp + 0x38], esp
mov esi, esp
call fcn.10002fe0
add eax, 0x10
mov dword [esi], eax
mov ecx, dword [edi + 0x274]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov bl, al
test bl, bl
jne 0x1000ccf0
mov eax, str.Request_Cancel_Download
lea ecx, [esp + 0x30]
call fcn.1000b630
push 0xffffffffffffffff
mov dword [esp + 0x25c], 2
push 0
lea ecx, [edi + 8]
lea eax, [esp + 0x38]
mov dword [edi + 4], 1
call fcn.1000b980
lea esi, [esp + 0x30]
call fcn.10002040
mov al, bl
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.1003f2d1
add esp, 0x24c
ret