Function at 0x104cf42
Capabilities:
Initialize winhttp library
Prepare http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 4
call fcn.0104cba6
cmp eax, ebx
jge 0x104cfab
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x104d164
test byte [ecx + 0x1c], 2
je 0x104d164
push eax
push 0x100d3b0
push 0x100d1b0
push 0x14
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01040d30
jmp 0x104d164
push esi
push edi
push ebx
push ebx
push ebx
push 1
push 0x100d390
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
cmp eax, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xc], eax
mov edi, 0xffff
mov esi, 0x80070000
jne 0x104d01b
call ebx
test eax, eax
jle 0x104cfe0
and eax, edi
or eax, esi
test eax, eax
jge 0x104d01b
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x104d153
test byte [ecx + 0x1c], 2
je 0x104d153
push eax
push 0x100d364
push 0x100d1b0
push 0x15
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01040d30
jmp 0x104d153
push 0
push 0x1bb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
test eax, eax
mov dword [ebp + 0x14], eax
jne 0x104d07c
call ebx
test eax, eax
jle 0x104d041
and eax, edi
or eax, esi
test eax, eax
jge 0x104d07c
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x104d144
test byte [ecx + 0x1c], 2
je 0x104d144
push eax
push 0x100d334
push 0x100d1b0
push 0x16
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01040d30
jmp 0x104d144
push 0x800000
xor eax, eax
push eax
push eax
push eax
push eax
push 0x100d32c
push dword [ebp + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp + 0x10], eax
xor eax, eax
cmp dword [ebp + 0x10], eax
jne 0x104d0d2
call ebx
test eax, eax
jle 0x104d0ab
and eax, edi
or eax, esi
test eax, eax
jge 0x104d0d0
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x104d135
test byte [ecx + 0x1c], 2
je 0x104d135
push eax
push 0x100d2f4
push 0x100d1b0
push 0x17
jmp 0x104d12a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x4e
push dword [ebp + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
test eax, eax
jne 0x104d135
and dword [ebp - 4], eax
call ebx
test eax, eax
jle 0x104d107
and eax, edi
or eax, esi
test eax, eax
jge 0x104d135
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x104d135
test byte [ecx + 0x1c], 2
je 0x104d135
push eax
push 0x100d2bc
push 0x100d1b0
push 0x18
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01040d30
cmp dword [ebp + 0x10], 0
je 0x104d144
push dword [ebp + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp + 0x14], 0
je 0x104d153
push dword [ebp + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp + 0xc], 0
pop edi
pop esi
je 0x104d164
push dword [ebp + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 4]
pop ebx
leave
ret 0x10