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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
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 - 0xc], 4
mov dword [ebp - 8], ebx
call fcn.0105ac5f
cmp eax, ebx
jge 0x105b07a
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x105b233
test byte [ecx + 0x1c], 4
je 0x105b233
push eax
push 0x100ff90
push 0x100fd90
push 0x14
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0104e22f
jmp 0x105b233
push esi
push edi
push ebx
push ebx
push ebx
push 1
push 0x100ff70
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 0x105b0ea
call ebx
test eax, eax
jle 0x105b0ad
and eax, edi
or eax, esi
mov ecx, eax
test ecx, ecx
jge 0x105b0ea
mov eax, dword [section..data]
cmp eax, section..data
je 0x105b222
test byte [eax + 0x1c], 4
je 0x105b222
push ecx
push 0x100ff44
push 0x100fd90
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0104e22f
jmp 0x105b222
push 0
push 0x1bb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp + 0x14], eax
test eax, eax
jne 0x105b14b
call ebx
test eax, eax
jle 0x105b10e
and eax, edi
or eax, esi
mov ecx, eax
test ecx, ecx
jge 0x105b14b
mov eax, dword [section..data]
cmp eax, section..data
je 0x105b213
test byte [eax + 0x1c], 4
je 0x105b213
push ecx
push 0x100ff14
push 0x100fd90
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0104e22f
jmp 0x105b213
push 0x800000
xor eax, eax
push eax
push eax
push eax
push eax
push 0x100ff0c
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 0x105b1a1
call ebx
test eax, eax
jle 0x105b178
and eax, edi
or eax, esi
mov ecx, eax
test ecx, ecx
jge 0x105b19f
mov eax, dword [section..data]
cmp eax, section..data
je 0x105b204
test byte [eax + 0x1c], 4
je 0x105b204
push ecx
push 0x100fed4
push 0x100fd90
push 0x17
jmp 0x105b1f9
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 - 0xc]
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 0x105b204
and dword [ebp - 4], eax
call ebx
test eax, eax
jle 0x105b1d4
and eax, edi
or eax, esi
mov ecx, eax
test ecx, ecx
jge 0x105b204
mov eax, dword [section..data]
cmp eax, section..data
je 0x105b204
test byte [eax + 0x1c], 4
je 0x105b204
push ecx
push 0x100fe9c
push 0x100fd90
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0104e22f
cmp dword [ebp + 0x10], 0
je 0x105b213
push dword [ebp + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp + 0x14], 0
je 0x105b222
push dword [ebp + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp + 0xc], 0
pop edi
pop esi
je 0x105b233
push dword [ebp + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ecx, dword [ebp - 8]
pop ebx
test ecx, ecx
je 0x105b240
mov eax, dword [ecx]
call dword [eax + reloc.Secur32.dll_QuerySecurityPackageInfoW]
mov eax, dword [ebp - 4]
leave
ret 0x10