Function at 0x104d003
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.0104cc68
cmp eax, ebx
jge 0x104d06c
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x104d225
test byte [ecx + 0x1c], 2
je 0x104d225
push eax
push 0x100d4a8
push 0x100d2a8
push 0x14
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01040e76
jmp 0x104d225
push esi
push edi
push ebx
push ebx
push ebx
push 1
push 0x100d488
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 0x104d0dc
call ebx
test eax, eax
jle 0x104d0a1
and eax, edi
or eax, esi
test eax, eax
jge 0x104d0dc
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x104d214
test byte [ecx + 0x1c], 2
je 0x104d214
push eax
push 0x100d45c
push 0x100d2a8
push 0x15
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01040e76
jmp 0x104d214
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 0x104d13d
call ebx
test eax, eax
jle 0x104d102
and eax, edi
or eax, esi
test eax, eax
jge 0x104d13d
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x104d205
test byte [ecx + 0x1c], 2
je 0x104d205
push eax
push 0x100d42c
push 0x100d2a8
push 0x16
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01040e76
jmp 0x104d205
push 0x800000
xor eax, eax
push eax
push eax
push eax
push eax
push 0x100d424
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 0x104d193
call ebx
test eax, eax
jle 0x104d16c
and eax, edi
or eax, esi
test eax, eax
jge 0x104d191
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x104d1f6
test byte [ecx + 0x1c], 2
je 0x104d1f6
push eax
push 0x100d3ec
push 0x100d2a8
push 0x17
jmp 0x104d1eb
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 0x104d1f6
and dword [ebp - 4], eax
call ebx
test eax, eax
jle 0x104d1c8
and eax, edi
or eax, esi
test eax, eax
jge 0x104d1f6
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x104d1f6
test byte [ecx + 0x1c], 2
je 0x104d1f6
push eax
push 0x100d3b4
push 0x100d2a8
push 0x18
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01040e76
cmp dword [ebp + 0x10], 0
je 0x104d205
push dword [ebp + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp + 0x14], 0
je 0x104d214
push dword [ebp + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp + 0xc], 0
pop edi
pop esi
je 0x104d225
push dword [ebp + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 4]
pop ebx
leave
ret 0x10