Function at 0x4d1910
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x666f80
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x6d5ec0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x128], esi
lea eax, [esi + 0x290]
mov dword [ebp - 0x134], eax
mov al, byte [eax]
nop
test al, al
je 0x4d195f
xor eax, eax
jmp 0x4d21ff
lea edi, [esi + 0xc0]
mov byte [ebp - 0x150], 0
push edi
mov dword [ebp - 0x154], edi
call fcn.0060da58
add esp, 4
test eax, eax
jne 0x4d221a
mov eax, dword [edi + 0x2c]
cmp eax, 0x7fffffff
je 0x4d2221
mov byte [ebp - 0x150], 1
mov al, byte [esi + 0x290]
mov dword [ebp - 4], 0
nop
test al, al
je 0x4d19b1
xor esi, esi
jmp 0x4d21ef
xorps xmm0, xmm0
movups xmmword [ebp - 0x144], xmm0
xor edi, edi
mov byte [esi + 0x29d], 0
xor eax, eax
mov dword [ebp - 0x130], edi
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], 7
mov word [ebp - 0x54], ax
push 0x6a50ac
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.00423c90
lea eax, [ebp - 0x100]
mov dword [ebp - 0xf0], edi
mov dword [ebp - 0x120], eax
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0xec], 7
movups xmmword [ebp - 0x100], xmm0
mov word [ebp - 0x100], ax
movups xmmword [ebp - 0xe8], xmm0
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd4], 7
mov word [ebp - 0xe8], ax
movups xmmword [ebp - 0xd0], xmm0
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], 7
mov word [ebp - 0xd0], ax
push 0x6a50ac
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 6
call fcn.00423c90
xorps xmm0, xmm0
mov dword [ebp - 0x90], edi
xor eax, eax
mov dword [ebp - 0x8c], 7
movups xmmword [ebp - 0xa0], xmm0
mov word [ebp - 0xa0], ax
movups xmmword [ebp - 0x88], xmm0
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
mov dword [ebp - 0x70], 0xffffffff
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.004b2490
mov ecx, eax
mov dword [ebp - 0x12c], ecx
mov eax, dword [ecx + 0xbc]
test eax, eax
jne 0x4d1ada
call fcn.004cc4e0
jmp 0x4d1fd4
cmp eax, 2
jne 0x4d1ae9
mov eax, 1
jmp 0x4d1fd4
cmp eax, 1
jne 0x4d1c07
call fcn.004cc4e0
mov dword [ebp - 0x11c], eax
cmp eax, 4
je 0x4d1fd4
xorps xmm0, xmm0
mov byte [esi + 0x29d], 1
movq qword [ebp - 0x60], xmm0
mov dword [ebp - 0x58], 0
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 8
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetDefaultProxyConfiguration]
test eax, eax
je 0x4d1b38
cmp dword [ebp - 0x60], 1
jne 0x4d1bf0
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x4d1bf0
cmp dword [ebp - 0x144], 0
je 0x4d1b74
lea ecx, [ebp - 0x60]
mov byte [esi + 0x29d], 1
mov byte [ebp - 4], 7
call fcn.004ca360
mov eax, dword [ebp - 0x11c]
jmp 0x4d1fd4
mov edx, dword [ebp - 0x140]
test edx, edx
je 0x4d1bc7
mov ecx, edx
mov byte [esi + 0x29d], 1
lea eax, [ecx + 2]
mov dword [ebp - 0x128], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d1b90
sub ecx, dword [ebp - 0x128]
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x2a0]
call fcn.00446b90
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 7
call fcn.004ca360
mov eax, dword [ebp - 0x11c]
jmp 0x4d1fd4
mov eax, dword [ebp - 0x13c]
test eax, eax
je 0x4d1bf0
mov edi, eax
mov dword [ebp - 0x11c], 3
mov eax, dword [ebp - 0x138]
xor ecx, ecx
test eax, eax
cmovne ecx, eax
mov dword [ebp - 0x130], ecx
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 7
call fcn.004ca360
mov eax, dword [ebp - 0x11c]
jmp 0x4d1fd4
lea edi, [ecx + 0x10]
lea eax, [ebp - 0x118]
cmp eax, edi
je 0x4d1c2d
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x4d1c1e
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x118]
push eax
call fcn.00446b90
add edi, 0x18
lea eax, [ebp - 0x100]
cmp eax, edi
je 0x4d1c53
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x4d1c44
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x100]
push eax
call fcn.00446b90
lea eax, [edi + 0x18]
lea ecx, [ebp - 0xe8]
cmp ecx, eax
je 0x4d1c79
cmp dword [eax + 0x14], 7
mov ecx, eax
jbe 0x4d1c6a
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0xe8]
call fcn.00446b90
lea eax, [edi + 0x30]
lea ecx, [ebp - 0xd0]
cmp ecx, eax
je 0x4d1c9f
cmp dword [eax + 0x14], 7
mov ecx, eax
jbe 0x4d1c90
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0xd0]
call fcn.00446b90
lea eax, [edi + 0x48]
lea ecx, [ebp - 0xb8]
cmp ecx, eax
je 0x4d1cc5
cmp dword [eax + 0x14], 7
mov ecx, eax
jbe 0x4d1cb6
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0xb8]
call fcn.00446b90
lea eax, [edi + 0x60]
lea ecx, [ebp - 0xa0]
cmp ecx, eax
je 0x4d1ceb
cmp dword [eax + 0x14], 7
mov ecx, eax
jbe 0x4d1cdc
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0xa0]
call fcn.00446b90
lea eax, [edi + 0x78]
lea ecx, [ebp - 0x88]
cmp ecx, eax
je 0x4d1d11
cmp dword [eax + 0x14], 7
mov ecx, eax
jbe 0x4d1d02
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x88]
call fcn.00446b90
cmp dword [ebp - 0x108], 0
mov edi, dword [edi + 0x90]
mov dword [ebp - 0x70], edi
je 0x4d1d58
lea eax, [ebp - 0x118]
push 0x6a50ac
push eax
call fcn.004879e0
add esp, 8
test al, al
jne 0x4d1d58
test edi, edi
jne 0x4d1d58
cmp dword [ebp - 0xd4], 7
lea edi, [ebp - 0xe8]
cmova edi, dword [ebp - 0xe8]
jmp 0x4d1fcf
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0x54]
call fcn.00446e20
cmp dword [ebp - 0x70], 0
jle 0x4d1fc4
mov ecx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x40]
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 0x120], edi
cmp ecx, edi
jae 0x4d1da3
lea eax, [ecx + 1]
cmp edi, 7
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x54]
cmova eax, dword [ebp - 0x54]
mov dword [eax + ecx*2], 0x3a
jmp 0x4d1ea0
mov edx, SysReAllocString
mov eax, edx
sub eax, ecx
cmp eax, 1
jb 0x4d222c
lea eax, [ecx + 1]
mov ecx, eax
mov dword [ebp - 0x148], eax
or ecx, 7
cmp ecx, edx
jbe 0x4d1dcb
mov ecx, edx
jmp 0x4d1de3
mov eax, edi
shr eax, 1
sub edx, eax
cmp edi, edx
jbe 0x4d1ddc
mov ecx, SysReAllocString
jmp 0x4d1de3
add eax, edi
cmp ecx, eax
cmovb ecx, eax
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], ecx
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00423d90
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x124], ecx
lea edx, [eax + eax]
lea eax, [ecx + edx]
mov dword [ebp - 0x11c], eax
push edx
cmp edi, 7
jbe 0x4d1e7e
mov edi, dword [ebp - 0x54]
push edi
push ecx
call fcn.00620e40
mov eax, dword [ebp - 0x11c]
add esp, 0xc
mov dword [eax], 0x3a
mov eax, dword [ebp - 0x120]
lea ecx, [eax*2 + 2]
cmp ecx, 0x1000
jb 0x4d1e72
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x4d2236
mov edi, edx
push ecx
push edi
call fcn.0061ef9d
add esp, 8
jmp 0x4d1e97
lea eax, [ebp - 0x54]
push eax
push ecx
call fcn.00620e40
mov eax, dword [ebp - 0x11c]
add esp, 0xc
mov dword [eax], 0x3a
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x70]
test eax, eax
jns 0x4d1ec3
neg eax
push eax
lea eax, [ebp - 0x12]
push eax
call fcn.0048ab70
add esp, 8
mov ecx, 0x2d
sub eax, 2
mov word [eax], cx
jmp 0x4d1ed0
push eax
lea eax, [ebp - 0x12]
push eax
call fcn.0048ab70
add esp, 8
lea ecx, [ebp - 0x12]
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x5c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x58], 0
movups xmmword [ebp - 0x6c], xmm0
cmp eax, ecx
jne 0x4d1f0b
xor eax, eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
jmp 0x4d1fa8
lea esi, [ebp - 0x12]
sub esi, eax
sar esi, 1
cmp esi, 0x7ffffffe
ja 0x4d2231
cmp esi, 7
ja 0x4d1f46
mov dword [ebp - 0x5c], esi
add esi, esi
push esi
push eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x58], 7
push eax
call fcn.00620e40
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x6c], ax
jmp 0x4d1fa2
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x4d1f59
mov eax, SysReAllocString
jmp 0x4d1f63
mov ecx, 0xa
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00423d90
mov dword [ebp - 0x5c], esi
mov edi, eax
mov eax, dword [ebp - 0x124]
add esi, esi
push esi
push dword [ebp - 0x11c]
mov dword [ebp - 0x6c], edi
push edi
mov dword [ebp - 0x58], eax
call fcn.00620e40
add esp, 0x14
xor eax, eax
mov word [edi + esi], ax
mov esi, dword [ebp - 0x128]
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x54]
call fcn.00446d90
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 7
call fcn.00406430
cmp dword [ebp - 0x40], 7
lea edi, [ebp - 0x54]
cmova edi, dword [ebp - 0x54]
mov eax, 3
push 0x10000000
push dword [ebp - 0x130]
push edi
push eax
push 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
mov dword [esi + 0x294], edi
test edi, edi
jne 0x4d2002
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4d2169
mov eax, dword [ebp - 0x12c]
push 0
push 0x3e8
push dword [eax + 0x11c]
push dword [eax + 0x118]
call fcn.0061f430
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 0x4d2046
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4d2169
mov eax, dword [ebp - 0x12c]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp byte [eax + 0x110], 0
je 0x4d2089
push 4
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 1
push eax
push 0x49
push dword [esi + 0x294]
call edi
test eax, eax
jne 0x4d2089
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4d2169
push 4
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0xaa0
push eax
push 0x54
push dword [esi + 0x294]
call edi
test eax, eax
jne 0x4d20b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4d2169
mov eax, dword [ebp - 0x12c]
mov ecx, dword [eax + 0x174]
test ecx, ecx
je 0x4d20df
mov eax, dword [esi + 0x294]
lea edx, [ebp - 0x120]
mov dword [ebp - 0x120], eax
mov eax, dword [ecx]
push edx
call dword [eax + 8]
push 0
push 0x97f4c30
push 0x4cee30
push dword [esi + 0x294]
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
jne 0x4d2106
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4d2169
lea ecx, [esi + 0x14]
call fcn.004c66f0
test al, al
je 0x4d2128
cmp byte [esi + 0x29c], 0
mov eax, 0x50
mov ecx, 0x1bb
cmovne eax, ecx
jmp 0x4d212e
mov eax, dword [esi + 0xbc]
cmp dword [esi + 0x58], 7
lea ecx, [esi + 0x44]
jbe 0x4d2139
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 0x4d215d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4d2169
mov ecx, dword [ebp - 0x134]
mov al, 1
xchg byte [ecx], al
xor esi, esi
lea ecx, [ebp - 0x118]
call fcn.0040d7f0
mov ecx, dword [ebp - 0x40]
cmp ecx, 7
jbe 0x4d21ae
mov edx, dword [ebp - 0x54]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4d21a4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d2236
push ecx
push edx
call fcn.0061ef9d
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
mov word [ebp - 0x54], ax
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 7
test eax, eax
je 0x4d21d5
push eax
call edi
mov eax, dword [ebp - 0x13c]
test eax, eax
je 0x4d21e2
push eax
call edi
mov ecx, dword [ebp - 0x138]
test ecx, ecx
je 0x4d21ef
push ecx
call edi
push dword [ebp - 0x154]
call fcn.0060da69
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0061eb08
mov esp, ebp
pop ebp
ret
push 5
call fcn.0060ca45
dec eax
push 6
mov dword [edi + 0x2c], eax
call fcn.0060ca45
call fcn.00402f70
call fcn.00402f70
call fcn.0063629b
int3