Function at 0x1000cd20
Capabilities:
Receive http response

Disassembly:
push 0xffffffffffffffff
push 0x10059ef1
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x1006c3ac]
xor eax, esp
mov dword [esp + 0x240], eax
push ebp
push esi
mov eax, dword [0x1006c3ac]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
push 0x401
mov dword [esp + 0x10], 0x400
call fcn.1003e829
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x1000ce4a
mov eax, dword [esp + 0xc]
inc eax
push eax
push 0
push ebp
call fcn.10042250
lea esi, [edi + 0x30]
push 0x100601c8
mov edx, esi
call fcn.1000d1e0
mov edx, dword [esp + 0x1c]
mov eax, dword [edi + 0x2c]
add esp, 0x10
lea ecx, [esp + 0xc]
push ecx
push edx
push ebp
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x1000ce51
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]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000cdf0
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], 1
call fcn.1000b980
cmp dword [esp + 0x28], 8
jb 0x1000ce41
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 0x1000cfc4
mov eax, dword [esp + 0xc]
add dword [edi + 0x250], eax
push eax
push ebp
lea ecx, [edi + 0x258]
call fcn.1002c770
test al, al
jne 0x1000cec2
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
mov eax, 1
mov dword [esp + 0x258], eax
push 0xffffffffffffffff
mov dword [edi + 4], eax
push 0
lea ecx, [edi + 8]
lea eax, [esp + 0x18]
call fcn.1000b980
cmp dword [esp + 0x28], 8
jb 0x1000ce41
mov eax, dword [esp + 0x14]
push eax
jmp 0x1000ce39
push ebp
call fcn.1004009b
mov ecx, dword [edi + 0x254]
add esp, 4
test ecx, ecx
je 0x1000ceee
mov eax, dword [edi + 0x250]
imul eax, eax, 0x64
xor edx, edx
div ecx
cmp eax, 0x63
jb 0x1000cf28
mov eax, 0x63
jmp 0x1000cf28
call fcn.10040520
and eax, 0x80000001
jns 0x1000ceff
dec eax
or eax, 0xfffffffe
inc eax
add eax, dword [edi + 0x27c]
cmp eax, 0x63
jle 0x1000cf11
mov eax, 0x63
jmp 0x1000cf28
call fcn.10040520
and eax, 0x80000001
jns 0x1000cf22
dec eax
or eax, 0xfffffffe
inc eax
add eax, dword [edi + 0x27c]
cmp dword [edi + 0x274], 0
mov dword [edi + 0x27c], eax
je 0x1000cfbb
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
test al, al
jne 0x1000cfad
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
xor eax, eax
jmp 0x1000cfc4
cmp dword [esp + 0xc], 0
je 0x1000cfa9
mov eax, 1
jmp 0x1000cfc4
xor eax, eax
cmp dword [esp + 0xc], eax
setne al
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.1003f2d1
add esp, 0x250
ret