Function at 0x1000fd90
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a2780
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x100d00b4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0x10]
xor esi, esi
push esi
push esi
push esi
push esi
xor edi, edi
mov dword [ebp - 0x58], eax
push str.A_WinHTTP_Example_Program_1.0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x4c], edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x50], eax
test eax, eax
je 0x1000fff3
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], esi
cmp dword [ecx + 0x14], 0x10
jb 0x1000fe0b
mov eax, dword [ecx]
jmp 0x1000fe0d
mov eax, ecx
push 9
push str.127.0.0.1
mov byte [eax], 0
call fcn.100017d0
lea ecx, [ebp - 0x44]
call fcn.1000e230
add esp, 0x18
mov dword [ebp - 4], 0
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
push 0
cmovae eax, dword [ebp - 0x44]
push 0x1f7b
push eax
push dword [ebp - 0x50]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, eax
mov dword [ebp - 0x54], edi
test edi, edi
je 0x1000ff9c
sub esp, 0x18
mov ecx, esp
push dword [ebp - 0x58]
call fcn.10001700
lea ecx, [ebp - 0x2c]
call fcn.1000e230
add esp, 0x18
push 0
push 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
push 0
cmovae eax, dword [ebp - 0x2c]
push 0
push eax
push 0x100bafb0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
test esi, esi
je 0x1000ff5d
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov edi, eax
mov dword [ebp - 0x4c], edi
test edi, edi
je 0x1000ff5d
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x1000ff5d
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
nop word [eax + eax]
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x1000ff06
call edi
push eax
push str.Error__u_in_WinHttpQueryDataAvailable._n
call fcn.10005e90
add esp, 8
mov eax, dword [ebp - 0x48]
inc eax
push eax
call fcn.1006c2ff
mov ecx, dword [ebp - 0x48]
add esp, 4
inc ecx
mov dword [ebx + 4], eax
push ecx
push 0
push eax
call fcn.1006fa30
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x48]
push dword [ebx + 4]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x1000ff45
call edi
push eax
push str.Error__u_in_WinHttpReadData._n
jmp 0x1000ff4d
push dword [ebx + 4]
push 0x100bb58c
call fcn.10005e90
add esp, 8
cmp dword [ebp - 0x48], 0
ja 0x1000fee0
jmp 0x1000ff71
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__d_has_occurred._n
call fcn.10005e90
add esp, 8
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x1000ff86
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.10009440
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
jmp 0x1000ffa9
push str.WinHttpConnect_failed__n
call fcn.10005e90
add esp, 4
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x1000ffbe
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.10009440
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
test esi, esi
je 0x1000ffdf
push esi
call edi
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x1000ffe9
push eax
call edi
push dword [ebp - 0x50]
call edi
mov edi, dword [ebp - 0x4c]
jmp 0x10010000
push str.WinHttpOpen_failed__n
call fcn.10005e90
add esp, 4
test edi, edi
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006c2b1
mov esp, ebp
pop ebp
ret 0xc