Function at 0x1009ce00
Capabilities:
Receive http response

Disassembly:
push 0xffffffffffffffff
push 0x10145278
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10170024]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x54]
mov eax, dword [0x10172444]
mov edx, dword [eax + 0xc]
mov ecx, 0x10172444
call edx
add eax, 0x10
mov dword [esp + 0x54], eax
mov dword [esp + 0x44], 0
mov ebx, dword [esp + 0x4c]
mov eax, dword [ebx + 4]
push eax
push str.___s_r_n
lea edi, [esp + 0x5c]
call fcn.1009e970
add esp, 8
push ebx
call fcn.1009cd00
test al, al
jne 0x1009ce97
mov esi, dword [esp + 0x50]
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
mov dword [esi], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x1009d10d
cmp dword [ebx + 0x34], 0
jl 0x1009ced3
jg 0x1009cea8
cmp dword [ebx + 0x30], 0x7fffffff
jbe 0x1009ced3
mov esi, dword [esp + 0x50]
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
mov dword [esi], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x1009d10d
push ebx
call fcn.1009d140
mov edi, edx
test edi, edi
mov esi, eax
jl 0x1009cf16
jg 0x1009ceeb
cmp esi, 0x7fffffff
jbe 0x1009cf16
mov esi, dword [esp + 0x50]
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
mov dword [esi], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x1009d10d
mov eax, dword [ebp + 8]
test eax, eax
je 0x1009cf3f
push 0
push esi
push 0
push 0
push 0
push 0
push eax
mov dword [ebp + 0x10], esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
setne al
test al, al
mov byte [ebp + 0x24], 0
jne 0x1009cf57
mov esi, dword [esp + 0x50]
lea eax, [esp + 0x54]
mov dword [esi], 5
call fcn.1009bb20
jmp 0x1009d119
or esi, edi
je 0x1009d0df
lea edi, [ebx + 0x10]
lea esi, [esp + 0x30]
call fcn.1009d680
mov ecx, dword [eax]
mov edx, dword [eax + 4]
lea esi, [esp + 0x30]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
call fcn.1009d6a0
mov esi, eax
lea edi, [esp + 0x28]
call fcn.1000b860
test al, al
je 0x1009d082
mov ebx, dword [esp + 0x54]
push 0
lea eax, [esp + 0x18]
push eax
push ebp
call fcn.1009c1e0
cmp dword [esp + 0x14], 0
jne 0x1009d0d3
lea esi, [esp + 0x28]
call fcn.1009d810
add eax, 0x10
mov eax, dword [eax]
push ebp
mov ecx, eax
lea esi, [esp + 0x1c]
call fcn.1009c130
cmp dword [esp + 0x18], 0
jne 0x1009d0d3
lea esi, [esp + 0x28]
call fcn.1009d810
cmp dword [eax], 1
jne 0x1009d014
call fcn.1009d810
add eax, 8
mov eax, dword [eax]
push eax
push ebp
lea edi, [esp + 0x24]
call fcn.1009c2f0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1009d035
mov esi, dword [esp + 0x50]
mov dword [esi], eax
lea eax, [esp + 0x54]
call fcn.1009bb20
jmp 0x1009d119
call fcn.1009d810
add eax, 0xc
mov eax, dword [eax]
push ebp
mov ecx, eax
lea esi, [esp + 0x24]
call fcn.1009c130
cmp dword [esp + 0x20], 0
jne 0x1009cf3f
push 0
lea ecx, [esp + 0x28]
push ecx
push ebp
mov ebx, 0x1015561c
call fcn.1009c1e0
cmp dword [esp + 0x24], 0
jne 0x1009cf3f
lea esi, [esp + 0x28]
call fcn.1009d840
mov edi, dword [esp + 0x4c]
lea esi, [esp + 0x30]
add edi, 0x10
call fcn.1009d6a0
mov esi, eax
lea edi, [esp + 0x28]
call fcn.1000b860
test al, al
jne 0x1009cf94
mov ebx, dword [esp + 0x4c]
mov ecx, dword [ebx + 4]
push ecx
push str.___s__
lea edi, [esp + 0x5c]
call fcn.1009e970
mov ebx, dword [esp + 0x5c]
add esp, 8
push 0
lea edx, [esp + 0x50]
push edx
push ebp
call fcn.1009c1e0
cmp dword [esp + 0x4c], 0
je 0x1009d0e3
mov esi, dword [esp + 0x50]
lea eax, [ebx - 0x10]
mov dword [esi], 5
mov dword [esp + 0x44], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x1009d10d
mov esi, dword [esp + 0x50]
mov dword [esi], 5
jmp 0x1009d0f9
mov ebx, dword [esp + 0x54]
mov ecx, dword [ebp + 8]
push 0
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov esi, dword [esp + 0x50]
mov dword [esi], 0
lea eax, [ebx - 0x10]
or ecx, 0xffffffff
lea edx, [eax + 0xc]
mov dword [esp + 0x44], ecx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1009d119
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0xc