Function at 0x485f80
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
lea ebp, [esp - 0x10c]
sub esp, 0x10c
push 0xffffffffffffffff
push 0x4bbe6e
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4ec1e4]
xor eax, ebp
mov dword [ebp + 0x108], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov al, byte [esi + 0x290]
lea ebx, [esi + 0x290]
mov dword [ebp - 0x34], ebx
nop
test al, al
je 0x485fd6
xor eax, eax
jmp 0x4867ba
lea eax, [esi + 0xc0]
mov byte [ebp - 0x38], 0
push eax
mov dword [ebp - 0x3c], eax
call fcn.0048a688
add esp, 4
test eax, eax
jne 0x4867dd
mov byte [ebp - 0x38], 1
mov dword [ebp - 4], eax
mov al, byte [ebx]
nop
test al, al
je 0x486009
xor esi, esi
jmp 0x4867ad
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
xor edi, edi
mov byte [esi + 0x29d], 0
xor eax, eax
mov dword [ebp + 0xc4], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp + 0xd4], edi
mov dword [ebp + 0xd8], 7
mov word [ebp + 0xc4], ax
push 1
mov dword [ebp + 0x18], eax
lea ecx, [ebp + 0x18]
push 0x4d23a0
mov byte [ebp - 4], 2
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x2c], 7
mov word [ebp + 0x18], ax
call fcn.004040a0
lea eax, [ebp + 0x30]
mov dword [ebp + 0x30], edi
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp + 0x40], edi
mov dword [ebp + 0x44], 7
mov word [ebp + 0x30], ax
mov dword [ebp + 0x48], eax
mov dword [ebp + 0x58], eax
mov dword [ebp + 0x5c], 7
mov word [ebp + 0x48], ax
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x70], eax
mov dword [ebp + 0x74], 7
mov word [ebp + 0x60], ax
push 1
mov dword [ebp + 0x78], eax
lea ecx, [ebp + 0x78]
push 0x4d23a0
mov byte [ebp - 4], 6
mov dword [ebp + 0x88], eax
mov dword [ebp + 0x8c], 7
mov word [ebp + 0x78], ax
call fcn.004040a0
xor eax, eax
mov dword [ebp + 0x90], edi
mov dword [ebp + 0xa8], eax
mov dword [ebp + 0xa0], edi
mov dword [ebp + 0xa4], 7
mov word [ebp + 0x90], ax
mov dword [ebp + 0xb8], eax
mov dword [ebp + 0xbc], 7
mov word [ebp + 0xa8], ax
mov dword [ebp + 0xc0], 0xffffffff
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.004545c0
mov dword [ebp - 0x10], eax
mov ecx, dword [eax + 0xbc]
test ecx, ecx
jne 0x48612e
call fcn.00480f20
mov ebx, eax
jmp 0x486568
cmp ecx, 2
jne 0x48613b
lea ebx, [ecx - 1]
jmp 0x486568
cmp ecx, 1
jne 0x48622a
call fcn.00480f20
mov ebx, eax
cmp ebx, 4
je 0x486568
xorps xmm0, xmm0
mov byte [esi + 0x29d], 1
movq qword [ebp - 0x48], xmm0
mov dword [ebp - 0x40], 0
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 8
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetDefaultProxyConfiguration]
test eax, eax
je 0x486186
cmp dword [ebp - 0x48], 1
jne 0x486219
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x486219
cmp dword [ebp - 0x2c], 0
je 0x4861b6
lea ecx, [ebp - 0x48]
mov byte [esi + 0x29d], 1
mov byte [ebp - 4], 7
call fcn.0047eef0
jmp 0x486568
mov edx, dword [ebp - 0x28]
test edx, edx
je 0x4861fe
mov ecx, edx
mov byte [esi + 0x29d], 1
lea eax, [ecx + 2]
mov dword [ebp - 0x14], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4861d0
sub ecx, dword [ebp - 0x14]
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x2a0]
call fcn.004040a0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 7
call fcn.0047eef0
jmp 0x486568
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x486219
mov edi, eax
xor ecx, ecx
mov eax, dword [ebp - 0x20]
mov ebx, 3
test eax, eax
cmovne ecx, eax
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 7
call fcn.0047eef0
jmp 0x486568
lea edi, [eax + 0x10]
lea eax, [ebp + 0x18]
cmp eax, edi
je 0x48624a
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x48623e
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp + 0x18]
push eax
call fcn.004040a0
add edi, 0x18
lea eax, [ebp + 0x30]
cmp eax, edi
je 0x48626a
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x48625e
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp + 0x30]
push eax
call fcn.004040a0
lea eax, [edi + 0x18]
lea ecx, [ebp + 0x48]
cmp ecx, eax
je 0x48628a
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x48627e
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp + 0x48]
call fcn.004040a0
lea eax, [edi + 0x30]
lea ecx, [ebp + 0x60]
cmp ecx, eax
je 0x4862aa
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x48629e
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp + 0x60]
call fcn.004040a0
lea eax, [edi + 0x48]
lea ecx, [ebp + 0x78]
cmp ecx, eax
je 0x4862ca
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x4862be
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp + 0x78]
call fcn.004040a0
lea eax, [edi + 0x60]
lea ecx, [ebp + 0x90]
cmp ecx, eax
je 0x4862f0
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x4862e1
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp + 0x90]
call fcn.004040a0
lea eax, [edi + 0x78]
lea ecx, [ebp + 0xa8]
cmp ecx, eax
je 0x486316
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x486307
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp + 0xa8]
call fcn.004040a0
mov eax, dword [ebp + 0x28]
mov ebx, dword [edi + 0x90]
mov dword [ebp + 0xc0], ebx
test eax, eax
je 0x486353
cmp dword [ebp + 0x2c], 8
lea edi, [ebp + 0x18]
cmovae edi, dword [ebp + 0x18]
cmp eax, 1
jne 0x4863a7
mov ecx, 0x4d23a0
mov edx, eax
sub edi, ecx
mov ax, word [ecx + edi]
cmp ax, word [ecx]
jne 0x4863a7
add ecx, 2
sub edx, 1
jne 0x486342
lea eax, [ebp + 0x48]
push eax
lea ecx, [ebp + 0xc4]
call fcn.00407c70
cmp dword [ebp + 0xc0], 0
jle 0x48654f
mov ecx, dword [ebp + 0xd4]
mov ebx, dword [ebp + 0xd8]
mov dword [ebp - 0x18], ecx
cmp ecx, ebx
jae 0x4863bb
lea eax, [ecx + 1]
cmp ebx, 8
mov dword [ebp + 0xd4], eax
lea eax, [ebp + 0xc4]
cmovae eax, dword [ebp + 0xc4]
mov dword [eax + ecx*2], 0x3a
jmp 0x486493
test ebx, ebx
jne 0x486353
cmp dword [ebp + 0x5c], 8
lea edi, [ebp + 0x48]
cmovae edi, dword [ebp + 0x48]
jmp 0x486563
mov edx, 0x7ffffffe
mov eax, edx
sub eax, ecx
cmp eax, 1
jb 0x4867e3
lea eax, [ecx + 1]
mov edi, eax
mov dword [ebp - 0x30], eax
or edi, 7
cmp edi, edx
jbe 0x4863e0
mov edi, edx
jmp 0x4863f8
mov eax, ebx
shr eax, 1
sub edx, eax
cmp ebx, edx
jbe 0x4863f1
mov edi, 0x7ffffffe
jmp 0x4863f8
add eax, ebx
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
push eax
lea ecx, [ebp + 0xc4]
call fcn.004043c0
mov ecx, dword [ebp - 0x30]
mov dword [ebp + 0xd4], ecx
mov ecx, dword [ebp - 0x18]
add ecx, ecx
mov dword [ebp + 0xd8], edi
mov dword [ebp - 0x14], eax
push ecx
lea edi, [eax + ecx]
mov dword [ebp - 0x18], edi
cmp ebx, 8
jb 0x486474
mov edi, dword [ebp + 0xc4]
push edi
push eax
call fcn.0048e820
mov eax, dword [ebp - 0x18]
lea ebx, [ebx*2 + 2]
add esp, 0xc
mov dword [eax], 0x3a
cmp ebx, 0x1000
jb 0x486468
mov ecx, dword [edi - 4]
add ebx, 0x23
sub edi, ecx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x4867e8
mov edi, ecx
push ebx
push edi
call fcn.0048c9bc
add esp, 8
jmp 0x48648a
lea ecx, [ebp + 0xc4]
push ecx
push eax
call fcn.0048e820
add esp, 0xc
mov dword [edi], 0x3a
mov eax, dword [ebp - 0x14]
mov dword [ebp + 0xc4], eax
mov eax, dword [ebp + 0xc0]
test eax, eax
jns 0x4864b9
neg eax
push eax
lea eax, [ebp + 0x106]
push eax
call fcn.0044dbb0
lea ecx, [eax - 2]
mov eax, 0x2d
mov word [ecx], ax
jmp 0x4864c8
push eax
lea eax, [ebp + 0x106]
push eax
call fcn.0044dbb0
mov ecx, eax
xor eax, eax
mov dword [ebp], 0
mov word [ebp], ax
add esp, 8
lea eax, [ebp + 0x106]
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 7
cmp ecx, eax
je 0x4864fe
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp]
call fcn.004040a0
lea eax, [ebp]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp + 0xc4]
call fcn.00405360
mov edx, dword [ebp + 0x14]
mov byte [ebp - 4], 7
cmp edx, 8
jb 0x48654f
mov ecx, dword [ebp]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x486545
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4867e8
push edx
push ecx
call fcn.0048c9bc
add esp, 8
cmp dword [ebp + 0xd8], 8
lea edi, [ebp + 0xc4]
cmovae edi, dword [ebp + 0xc4]
mov ebx, 3
push 0x10000000
push dword [ebp - 0x1c]
push edi
push ebx
push 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
mov dword [esi + 0x294], edi
test edi, edi
jne 0x486593
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4866d6
mov ebx, dword [ebp - 0x10]
push 0
push 0x3e8
push dword [ebx + 0x11c]
push dword [ebx + 0x118]
call fcn.0048d340
mov ecx, 1
cmp eax, ecx
cmovl eax, ecx
push eax
push eax
push eax
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x4865d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4866d6
cmp byte [ebx + 0x110], 0
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
je 0x48660b
push 4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 1
push eax
push 0x49
push dword [esi + 0x294]
call edi
test eax, eax
jne 0x48660b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4866d6
push 4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0xaa0
push eax
push 0x54
push dword [esi + 0x294]
call edi
test eax, eax
jne 0x486633
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4866d6
mov ecx, dword [ebx + 0x174]
test ecx, ecx
je 0x48664f
mov eax, dword [esi + 0x294]
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx]
push edx
call dword [eax + 8]
push 0
push 0x17f4c30
push 0x483540
push dword [esi + 0x294]
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
jne 0x486676
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4866d6
lea ecx, [esi + 0x14]
call fcn.0047c090
test al, al
je 0x486698
cmp byte [esi + 0x29c], 0
mov eax, 0x50
mov ecx, 0x1bb
cmovne eax, ecx
jmp 0x48669e
mov eax, dword [esi + 0xbc]
cmp dword [esi + 0x58], 8
lea ecx, [esi + 0x44]
jb 0x4866a9
mov ecx, dword [ecx]
push 0
push eax
push ecx
push dword [esi + 0x294]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [esi + 0x298], eax
test eax, eax
jne 0x4866cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4866d6
mov ecx, dword [ebp - 0x34]
mov al, 1
xchg byte [ecx], al
xor esi, esi
lea ecx, [ebp + 0x30]
call fcn.004038b0
mov edx, dword [ebp + 0x2c]
cmp edx, 8
jb 0x486718
mov ecx, dword [ebp + 0x18]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48670e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4867e8
push edx
push ecx
call fcn.0048c9bc
add esp, 8
mov edx, dword [ebp + 0xd8]
xor eax, eax
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 7
mov word [ebp + 0x18], ax
cmp edx, 8
jb 0x48676c
mov ecx, dword [ebp + 0xc4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x486762
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4867e8
push edx
push ecx
call fcn.0048c9bc
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
mov word [ebp + 0xc4], ax
mov eax, dword [ebp - 0x28]
mov dword [ebp + 0xd4], 0
mov dword [ebp + 0xd8], 7
test eax, eax
je 0x486799
push eax
call edi
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4867a3
push eax
call edi
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4867ad
push eax
call edi
push dword [ebp - 0x3c]
call fcn.0048a6ad
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x108]
xor ecx, ebp
call fcn.0048c98b
lea esp, [ebp + 0x10c]
pop ebp
ret
push eax
call fcn.0048a156
call fcn.00404240
call fcn.0049166f
int3