Function at 0x475e40
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
movzx ebx, byte [ebp + 0x10]
xor eax, eax
neg ebx
sbb ebx, ebx
push esi
mov esi, ecx
and ebx, 0x10000000
push edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], eax
cmp dword [ebp + 8], eax
je 0x476111
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x476111
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
mov dword [ebp - 8], eax
lea eax, [esi + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0x1c], eax
test ecx, ecx
je 0x475ea0
xor eax, eax
cmp word [ecx], ax
je 0x475ea0
mov dword [ebp + 0x10], 1
xor ecx, ecx
jmp 0x475ea5
xor ecx, ecx
mov dword [ebp + 0x10], ecx
lea edx, [esi + 0x14]
mov eax, dword [edx]
mov dword [ebp - 0x10], edx
test eax, eax
je 0x475ebd
mov dword [ebp - 0xc], 1
cmp word [eax], cx
jne 0x475ec0
mov dword [ebp - 0xc], ecx
lea eax, [esi + 0x18]
mov ecx, dword [eax]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x475ee1
xor edi, edi
cmp word [ecx], di
mov edi, dword [ebp + 0x14]
je 0x475ee1
mov dword [ebp + 0x14], 1
xor ecx, ecx
jmp 0x475ee6
xor ecx, ecx
mov dword [ebp + 0x14], ecx
cmp dword [ebp - 8], 0
je 0x475fb2
cmp dword [esi + 0xc], ecx
jne 0x475fb2
cmp dword [ebp + 0x10], 0
jne 0x475fb2
cmp dword [ebp - 0xc], 0
je 0x475f6e
push eax
push edx
push 0x42f3e0
push 3
pop esi
push esi
call fcn.0047624a
cmp dword [ebp + 0x14], 0
je 0x475f26
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
jmp 0x475f28
xor eax, eax
push ebx
push eax
mov eax, dword [ebp - 0x10]
push dword [eax]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
call esi
mov dword [ebp - 4], eax
test eax, eax
je 0x475f5d
lea eax, [ebp - 4]
push eax
push 0x42f470
push 2
call fcn.004762b5
mov eax, dword [ebp - 4]
xor ecx, ecx
cmp dword [edi], ecx
jne 0x476114
call esi
jmp 0x476114
push 0x42f518
push 3
call fcn.0047631a
push ebx
xor ebx, ebx
push ebx
push ebx
push 1
push dword [ebp + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
call esi
mov dword [ebp - 4], eax
test eax, eax
je 0x475fae
lea eax, [ebp - 4]
push eax
push 0x42f580
push 2
call fcn.00476376
mov eax, dword [ebp - 4]
cmp dword [edi], ebx
jmp 0x475f61
push ebx
push ecx
push ecx
push 1
push dword [ebp + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
call esi
mov dword [ebp - 4], eax
test eax, eax
je 0x475fe1
lea eax, [ebp - 4]
push eax
push 0x42f580
push 2
call fcn.00476376
xor eax, eax
cmp dword [edi], eax
je 0x475f67
cmp dword [ebp - 8], eax
je 0x476018
cmp dword [ebp + 0x10], eax
je 0x476018
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [ecx]
push ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
push eax
push 0x42f620
push 3
pop esi
push esi
mov dword [ebp - 0x34], 2
call fcn.004763db
jmp 0x476033
push 3
pop esi
push 0x42f6b0
push esi
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], eax
call fcn.00476446
push dword [ebp - 0x14]
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x20], 1
push dword [edi]
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
cmp eax, 1
jne 0x4760a3
mov ebx, dword [ebp - 0x14]
cmp dword [ebx], esi
jne 0x47606d
lea eax, [ebx + 8]
push eax
lea eax, [ebx + 4]
push eax
push 0x42f730
push esi
call fcn.004764a2
jmp 0x47608a
cmp dword [ebx], 0
jne 0x47607f
push 0x42f7d0
push esi
call fcn.00464253
jmp 0x47608a
push 0x42f850
push esi
call fcn.0047650d
push 0xc
push ebx
push 0x26
push dword [edi]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x47610c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x476114
cmp dword [ebp - 8], 0
je 0x47610c
cmp dword [ebp - 0xc], 0
je 0x47610c
push 0x42f8c8
push esi
call fcn.00464253
push dword [edi]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp + 0x14], 0
je 0x4760cf
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
jmp 0x4760d1
xor eax, eax
push ebx
push eax
mov eax, dword [ebp - 0x10]
push dword [eax]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
test eax, eax
je 0x476104
lea eax, [ebp - 4]
push eax
push 0x42f580
push 2
call fcn.00476376
mov eax, dword [ebp - 4]
xor ecx, ecx
cmp dword [edi], ecx
jne 0x476114
jmp 0x47609b
mov eax, dword [ebp - 4]
jmp 0x476114
push 0x57
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10