Function at 0x508370
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x629688]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
mov byte [ecx], 0
xorps xmm0, xmm0
push 0x200
mov dword [ebp - 0x21c], eax
mov dword [eax], 0
lea eax, [ebp - 0x204]
push 0
push eax
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], ecx
mov byte [ebp - 0x205], 0
movq qword [ebp - 0x23c], xmm0
movq qword [ebp - 0x234], xmm0
movq qword [ebp - 0x22c], xmm0
movq qword [ebp - 0x218], xmm0
mov dword [ebp - 0x210], 0
call fcn.005877c0
add esp, 0xc
push 0
push 0
push 0
push 1
push 0x5e9610
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x20c], eax
test eax, eax
jne 0x508420
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00586d1b
mov esp, ebp
pop ebp
ret
push ebx
push edi
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
mov ebx, dword [ebp - 0x244]
test ebx, ebx
je 0x5084ea
push str.https
push ebx
lea esi, [ebp - 0x204]
call fcn.00587f3b
mov edi, eax
add esp, 8
test edi, edi
je 0x50845c
add edi, 0xc
jmp 0x508474
push 0x5e9604
push ebx
call fcn.00587f3b
add esp, 8
test eax, eax
jne 0x50860b
mov edi, ebx
push 0x5e9608
push edi
call fcn.00587f3b
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x50848d
add ecx, 6
jmp 0x50848f
mov ecx, edi
cmp word [ecx], 0x20
jne 0x50849e
add ecx, 2
cmp word [ecx], 0x20
je 0x508495
movzx edx, word [ecx]
test dx, dx
je 0x50860b
cmp edx, 0x3a
je 0x50860b
lea eax, [ebp - 0x204]
sub ecx, eax
jmp 0x5084c0
cmp dx, 0x3b
je 0x5084d8
mov word [esi], dx
movzx eax, word [ecx + esi + 2]
add esi, 2
mov edx, eax
test ax, ax
jne 0x5084c0
xor eax, eax
mov word [esi], ax
lea esi, [ebp - 0x204]
xor ebx, ebx
jmp 0x5085a4
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call edi
mov esi, eax
test esi, esi
je 0x50860b
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00585fec
add esp, 4
mov ebx, eax
push esi
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x224]
push 0
push 0xfde9
call edi
mov ecx, dword [ebp - 0x248]
test ecx, ecx
je 0x508554
mov dword [ebp - 0x23c], 2
mov dword [ebp - 0x234], ecx
jmp 0x508575
cmp dword [ebp - 0x24c], 0
je 0x5085fe
mov dword [ebp - 0x23c], 1
mov dword [ebp - 0x238], 3
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x23c]
push eax
push ebx
push dword [ebp - 0x20c]
mov dword [ebp - 0x228], 1
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
mov esi, dword [ebp - 0x214]
test esi, esi
je 0x5085fe
push 0x5eacc4
push esi
call fcn.00587f3b
mov edi, eax
add esp, 8
test edi, edi
je 0x5085fe
xor eax, eax
push eax
push eax
push dword [ebp + 0x10]
mov word [edi], ax
push dword [ebp - 0x220]
push 0xffffffffffffffff
push esi
push eax
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x5085e3
mov byte [ebp - 0x205], al
jmp 0x5085fe
lea eax, [edi + 2]
push eax
call fcn.005881d2
mov ecx, dword [ebp - 0x21c]
add esp, 4
mov dword [ecx], eax
mov byte [ebp - 0x205], 1
test ebx, ebx
je 0x50860b
push ebx
call fcn.0058603b
add esp, 4
mov ecx, dword [ebp - 0x248]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop ebx
test ecx, ecx
je 0x508620
push ecx
call esi
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x50862d
push eax
call esi
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x50863a
push eax
call esi
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x508647
push eax
call esi
mov ecx, dword [ebp - 0x210]
test ecx, ecx
je 0x508654
push ecx
call esi
push dword [ebp - 0x20c]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x205]
xor ecx, ebp
pop esi
call fcn.00586d1b
mov esp, ebp
pop ebp
ret