Function at 0x104cf6e
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.0104cbd3
cmp eax, ebx
jge 0x104cfd7
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x104d190
test byte [ecx + 0x1c], 2
je 0x104d190
push eax
push 0x100d430
push 0x100d230
push 0x14
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01040d61
jmp 0x104d190
push esi
push edi
push ebx
push ebx
push ebx
push 1
push 0x100d410
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 0x104d047
call ebx
test eax, eax
jle 0x104d00c
and eax, edi
or eax, esi
test eax, eax
jge 0x104d047
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x104d17f
test byte [ecx + 0x1c], 2
je 0x104d17f
push eax
push 0x100d3e4
push 0x100d230
push 0x15
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01040d61
jmp 0x104d17f
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 0x104d0a8
call ebx
test eax, eax
jle 0x104d06d
and eax, edi
or eax, esi
test eax, eax
jge 0x104d0a8
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x104d170
test byte [ecx + 0x1c], 2
je 0x104d170
push eax
push 0x100d3b4
push 0x100d230
push 0x16
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01040d61
jmp 0x104d170
push 0x800000
xor eax, eax
push eax
push eax
push eax
push eax
push 0x100d3ac
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 0x104d0fe
call ebx
test eax, eax
jle 0x104d0d7
and eax, edi
or eax, esi
test eax, eax
jge 0x104d0fc
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x104d161
test byte [ecx + 0x1c], 2
je 0x104d161
push eax
push 0x100d374
push 0x100d230
push 0x17
jmp 0x104d156
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 0x104d161
and dword [ebp - 4], eax
call ebx
test eax, eax
jle 0x104d133
and eax, edi
or eax, esi
test eax, eax
jge 0x104d161
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x104d161
test byte [ecx + 0x1c], 2
je 0x104d161
push eax
push 0x100d33c
push 0x100d230
push 0x18
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01040d61
cmp dword [ebp + 0x10], 0
je 0x104d170
push dword [ebp + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp + 0x14], 0
je 0x104d17f
push dword [ebp + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp + 0xc], 0
pop edi
pop esi
je 0x104d190
push dword [ebp + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 4]
pop ebx
leave
ret 0x10