Function at 0x1000f890
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10053b28
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10070850]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
call fcn.1001dc0a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x1000f8d8
push 0x80004005
call fcn.10006d00
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x38]
lea edi, [esi + 0x38]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x1000f90c
mov ecx, dword [eax + 4]
push ecx
mov ecx, edi
call fcn.10006ae0
mov edi, dword [edi]
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi], eax
test eax, eax
jne 0x1000f981
push 0x14
lea edi, [esi + 0x40]
push str.Cannot_open_internet
mov ecx, edi
call fcn.100068b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
push eax
push edx
mov dword [esi + 0x1c], eax
push str._s__d
lea eax, [ebp - 0x14]
push eax
call fcn.10006ce0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000fb72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x1000fb72
movzx ecx, word [esi + 0x10]
mov edx, dword [esi + 0x2c]
mov eax, dword [esi + 0x28]
push ecx
push edx
lea ebx, [esi + 0x28]
push eax
lea ecx, [ebp - 0x14]
push str._s____s____d
push ecx
call fcn.10006ce0
mov eax, dword [esi + 0x34]
lea edi, [esi + 0x34]
sub eax, 0x10
add esp, 0x14
cmp dword [eax + 0xc], 1
jle 0x1000f9bc
mov edx, dword [eax + 4]
push edx
mov ecx, edi
call fcn.10006ae0
mov eax, dword [edi]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x30]
lea edi, [esi + 0x30]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x1000f9db
mov ecx, dword [eax + 4]
push ecx
mov ecx, edi
call fcn.10006ae0
mov eax, dword [ebx]
mov edi, dword [edi]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x1000f9f3
mov edx, dword [eax + 4]
push edx
mov ecx, ebx
call fcn.10006ae0
mov ecx, dword [ebp - 0x18]
movzx edx, word [esi + 0x10]
mov eax, dword [ebx]
push 0
push 0
push 3
push ecx
push edi
push edx
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 4], eax
test eax, eax
jne 0x1000fa7c
push 0x1a
lea edi, [esi + 0x40]
push str.Cannot_connect_to_internet
mov ecx, edi
call fcn.100068b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x1c], eax
call fcn.1000fce0
mov ecx, dword [esi + 0x1c]
mov edx, dword [edi]
push ecx
push edx
lea eax, [ebp - 0x14]
push str._s__d
push eax
call fcn.10006ce0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000fb72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x1000fb72
mov eax, dword [esi + 0x2c]
lea edi, [esi + 0x2c]
sub eax, 0x10
mov ebx, 1
cmp dword [eax + 0xc], ebx
jle 0x1000fa9a
mov ecx, dword [eax + 4]
push ecx
mov ecx, edi
call fcn.10006ae0
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov edi, dword [edi]
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [esi + 4]
push eax
push 0
push 0x1005c928
push 0
push edi
push ecx
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [esi + 8], eax
test eax, eax
jne 0x1000faf5
lea edi, [esi + 0x40]
push str.Cannot_perform_http_request
mov ecx, edi
call fcn.10006690
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x1c], eax
call fcn.1000fce0
mov eax, dword [esi + 0x1c]
mov ecx, dword [edi]
push eax
push ecx
push str._s__d
lea edx, [ebp - 0x14]
push edx
jmp 0x1000f94a
add dword [esi + 0x14], ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000fb1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8