Function at 0x409290
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x6cd400]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 0x40], esi
test ebx, ebx
je 0x409618
xor eax, eax
mov word [ebx], ax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
jne 0x4092f2
call fcn.00401520
mov edi, dword [eax + 0xf8]
lea esi, [eax + 0xf8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x6779c8
push 0x677a4c
push esi
call dword [edi + 0x24]
mov esi, dword [ebp - 0x40]
add esp, 0x10
cmp dword [ebp - 0xc], 0
je 0x4093f4
call fcn.00401520
push dword [ebp - 0xc]
mov ecx, dword [eax + 0xf8]
add eax, 0xf8
push 0x677a68
push eax
call dword [ecx + 0x14]
push 0x677ab4
push dword [ebp - 0xc]
mov byte [ebp - 0x39], 0
call fcn.005ea47f
mov esi, eax
add esp, 0x14
test esi, esi
je 0x409337
add esi, 0xc
jmp 0x40934e
push 0x677ac4
push dword [ebp - 0xc]
call fcn.005ea47f
add esp, 8
test eax, eax
jne 0x4093ba
mov esi, dword [ebp - 0xc]
push 0x677ac8
push esi
call fcn.005ea47f
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x409367
add ecx, 6
jmp 0x409369
mov ecx, esi
cmp word [ecx], 0x20
jne 0x409379
nop
add ecx, 2
cmp word [ecx], 0x20
je 0x409370
movzx eax, word [ecx]
test ax, ax
je 0x4093ba
cmp eax, 0x3a
je 0x4093ba
mov edx, ecx
lea esi, [edx + 2]
jmp 0x409390
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x409390
sub edx, esi
sar edx, 1
cmp edx, 0x100
jg 0x4093ba
push ecx
push 0x100
push ebx
call fcn.005ea9d1
add esp, 0xc
mov bl, 1
jmp 0x4093bd
mov bl, byte [ebp - 0x39]
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x4093cd
push eax
call esi
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4093d7
push eax
call esi
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x4093e1
push ecx
call esi
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005e96ad
mov esp, ebp
pop ebp
ret
call fcn.00401520
mov ecx, dword [eax + 0xf8]
add eax, 0xf8
push 0x677ad0
push eax
call dword [ecx + 0xc]
add esp, 8
xor edi, edi
push edi
push edi
push 0xffffffffffffffff
push esi
xorps xmm0, xmm0
push edi
push 0xfde9
mov byte [ebp - 0x39], 0
mov dword [ebp - 0x44], 0
movq qword [ebp - 0x38], xmm0
movq qword [ebp - 0x30], xmm0
movq qword [ebp - 0x28], xmm0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x4095ab
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c56b9
add esp, 4
mov esi, eax
push dword [ebp - 0x48]
mov dword [ebp - 0x44], esi
push esi
push 0xffffffffffffffff
push dword [ebp - 0x40]
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
push edi
push edi
push 1
push 0x677b4c
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
mov dword [ebp - 0x40], edi
test edi, edi
je 0x4095ab
cmp dword [ebp - 0x10], 0
je 0x4094f2
call fcn.00401520
push dword [ebp - 0x10]
mov ecx, dword [eax + 0xf8]
add eax, 0xf8
push 0x677b70
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x38]
push eax
push esi
push edi
mov dword [ebp - 0x38], 2
mov dword [ebp - 0x24], 1
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
jne 0x40955b
jmp 0x40952f
cmp dword [ebp - 0x14], 0
je 0x40955b
cmp byte [0x6ce8a4], 0
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x24], 1
je 0x40955b
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x38]
push eax
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
jne 0x40955b
mov byte [0x6ce8a4], al
call fcn.00401520
mov edi, dword [eax + 0xf8]
lea esi, [eax + 0xf8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x677be0
push 0x677a4c
push esi
call dword [edi + 0x24]
mov edi, dword [ebp - 0x40]
add esp, 0x10
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x4095ab
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409565
sub ecx, edx
sar ecx, 1
cmp ecx, 0x100
jg 0x4095ab
push dword [ebp - 0x1c]
push 0x100
push ebx
call fcn.005ea9d1
call fcn.00401520
mov ecx, dword [eax + 0xf8]
add eax, 0xf8
push ebx
push 0x677c58
push eax
call dword [ecx + 0x14]
add esp, 0x18
mov bl, 1
jmp 0x4095ae
mov bl, byte [ebp - 0x39]
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x4095be
push eax
call esi
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4095c8
push eax
call esi
mov eax, dword [ebp - 8]
test eax, eax
je 0x4095d2
push eax
call esi
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4095e2
push eax
call fcn.004c56c2
add esp, 4
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x4095ec
push ecx
call esi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4095f6
push eax
call esi
test edi, edi
je 0x4093e1
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005e96ad
mov esp, ebp
pop ebp
ret
call fcn.00401520
mov ecx, dword [eax + 0xf8]
add eax, 0xf8
push 0x677958
push 0x6779a0
push eax
call dword [ecx + 0x1c]
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
pop esi
xor al, al
pop ebx
call fcn.005e96ad
mov esp, ebp
pop ebp
ret