Function at 0x4d21b0
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6679f0
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x6d6ec0]
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 0x4d21ff
xor eax, eax
jmp 0x4d2a9f
lea edi, [esi + 0xc0]
mov byte [ebp - 0x150], 0
push edi
mov dword [ebp - 0x154], edi
call fcn.0060e3c8
add esp, 4
test eax, eax
jne 0x4d2aba
mov eax, dword [edi + 0x2c]
cmp eax, 0x7fffffff
je 0x4d2ac1
mov byte [ebp - 0x150], 1
mov al, byte [esi + 0x290]
mov dword [ebp - 4], 0
nop
test al, al
je 0x4d2251
xor esi, esi
jmp 0x4d2a8f
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 0x6a60ec
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 0x6a60ec
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.004b2d30
mov ecx, eax
mov dword [ebp - 0x12c], ecx
mov eax, dword [ecx + 0xbc]
test eax, eax
jne 0x4d237a
call fcn.004ccd80
jmp 0x4d2874
cmp eax, 2
jne 0x4d2389
mov eax, 1
jmp 0x4d2874
cmp eax, 1
jne 0x4d24a7
call fcn.004ccd80
mov dword [ebp - 0x11c], eax
cmp eax, 4
je 0x4d2874
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 0x4d23d8
cmp dword [ebp - 0x60], 1
jne 0x4d2490
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x4d2490
cmp dword [ebp - 0x144], 0
je 0x4d2414
lea ecx, [ebp - 0x60]
mov byte [esi + 0x29d], 1
mov byte [ebp - 4], 7
call fcn.004cac00
mov eax, dword [ebp - 0x11c]
jmp 0x4d2874
mov edx, dword [ebp - 0x140]
test edx, edx
je 0x4d2467
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 0x4d2430
sub ecx, dword [ebp - 0x128]
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x2a0]
call fcn.00446de0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 7
call fcn.004cac00
mov eax, dword [ebp - 0x11c]
jmp 0x4d2874
mov eax, dword [ebp - 0x13c]
test eax, eax
je 0x4d2490
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.004cac00
mov eax, dword [ebp - 0x11c]
jmp 0x4d2874
lea edi, [ecx + 0x10]
lea eax, [ebp - 0x118]
cmp eax, edi
je 0x4d24cd
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x4d24be
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x118]
push eax
call fcn.00446de0
add edi, 0x18
lea eax, [ebp - 0x100]
cmp eax, edi
je 0x4d24f3
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x4d24e4
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x100]
push eax
call fcn.00446de0
lea eax, [edi + 0x18]
lea ecx, [ebp - 0xe8]
cmp ecx, eax
je 0x4d2519
cmp dword [eax + 0x14], 7
mov ecx, eax
jbe 0x4d250a
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0xe8]
call fcn.00446de0
lea eax, [edi + 0x30]
lea ecx, [ebp - 0xd0]
cmp ecx, eax
je 0x4d253f
cmp dword [eax + 0x14], 7
mov ecx, eax
jbe 0x4d2530
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0xd0]
call fcn.00446de0
lea eax, [edi + 0x48]
lea ecx, [ebp - 0xb8]
cmp ecx, eax
je 0x4d2565
cmp dword [eax + 0x14], 7
mov ecx, eax
jbe 0x4d2556
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0xb8]
call fcn.00446de0
lea eax, [edi + 0x60]
lea ecx, [ebp - 0xa0]
cmp ecx, eax
je 0x4d258b
cmp dword [eax + 0x14], 7
mov ecx, eax
jbe 0x4d257c
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0xa0]
call fcn.00446de0
lea eax, [edi + 0x78]
lea ecx, [ebp - 0x88]
cmp ecx, eax
je 0x4d25b1
cmp dword [eax + 0x14], 7
mov ecx, eax
jbe 0x4d25a2
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x88]
call fcn.00446de0
cmp dword [ebp - 0x108], 0
mov edi, dword [edi + 0x90]
mov dword [ebp - 0x70], edi
je 0x4d25f8
lea eax, [ebp - 0x118]
push 0x6a60ec
push eax
call fcn.00488270
add esp, 8
test al, al
jne 0x4d25f8
test edi, edi
jne 0x4d25f8
cmp dword [ebp - 0xd4], 7
lea edi, [ebp - 0xe8]
cmova edi, dword [ebp - 0xe8]
jmp 0x4d286f
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0x54]
call fcn.00447070
cmp dword [ebp - 0x70], 0
jle 0x4d2864
mov ecx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x40]
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 0x120], edi
cmp ecx, edi
jae 0x4d2643
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 0x4d2740
mov edx, SysReAllocString
mov eax, edx
sub eax, ecx
cmp eax, 1
jb 0x4d2acc
lea eax, [ecx + 1]
mov ecx, eax
mov dword [ebp - 0x148], eax
or ecx, 7
cmp ecx, edx
jbe 0x4d266b
mov ecx, edx
jmp 0x4d2683
mov eax, edi
shr eax, 1
sub edx, eax
cmp edi, edx
jbe 0x4d267c
mov ecx, SysReAllocString
jmp 0x4d2683
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 0x4d271e
mov edi, dword [ebp - 0x54]
push edi
push ecx
call fcn.006217b0
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 0x4d2712
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x4d2ad6
mov edi, edx
push ecx
push edi
call fcn.0061f90d
add esp, 8
jmp 0x4d2737
lea eax, [ebp - 0x54]
push eax
push ecx
call fcn.006217b0
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 0x4d2763
neg eax
push eax
lea eax, [ebp - 0x12]
push eax
call fcn.0048b400
add esp, 8
mov ecx, 0x2d
sub eax, 2
mov word [eax], cx
jmp 0x4d2770
push eax
lea eax, [ebp - 0x12]
push eax
call fcn.0048b400
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 0x4d27ab
xor eax, eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
jmp 0x4d2848
lea esi, [ebp - 0x12]
sub esi, eax
sar esi, 1
cmp esi, 0x7ffffffe
ja 0x4d2ad1
cmp esi, 7
ja 0x4d27e6
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.006217b0
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x6c], ax
jmp 0x4d2842
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x4d27f9
mov eax, SysReAllocString
jmp 0x4d2803
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.006217b0
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.00446fe0
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 7
call fcn.00406410
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 0x4d28a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4d2a09
mov eax, dword [ebp - 0x12c]
push 0
push 0x3e8
push dword [eax + 0x11c]
push dword [eax + 0x118]
call fcn.0061fda0
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 0x4d28e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4d2a09
mov eax, dword [ebp - 0x12c]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp byte [eax + 0x110], 0
je 0x4d2929
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 0x4d2929
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4d2a09
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 0x4d2957
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4d2a09
mov eax, dword [ebp - 0x12c]
mov ecx, dword [eax + 0x174]
test ecx, ecx
je 0x4d297f
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 0x4cf6d0
push dword [esi + 0x294]
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
jne 0x4d29a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4d2a09
lea ecx, [esi + 0x14]
call fcn.004c6f90
test al, al
je 0x4d29c8
cmp byte [esi + 0x29c], 0
mov eax, 0x50
mov ecx, 0x1bb
cmovne eax, ecx
jmp 0x4d29ce
mov eax, dword [esi + 0xbc]
cmp dword [esi + 0x58], 7
lea ecx, [esi + 0x44]
jbe 0x4d29d9
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 0x4d29fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4d2a09
mov ecx, dword [ebp - 0x134]
mov al, 1
xchg byte [ecx], al
xor esi, esi
lea ecx, [ebp - 0x118]
call fcn.0040d790
mov ecx, dword [ebp - 0x40]
cmp ecx, 7
jbe 0x4d2a4e
mov edx, dword [ebp - 0x54]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4d2a44
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d2ad6
push ecx
push edx
call fcn.0061f90d
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 0x4d2a75
push eax
call edi
mov eax, dword [ebp - 0x13c]
test eax, eax
je 0x4d2a82
push eax
call edi
mov ecx, dword [ebp - 0x138]
test ecx, ecx
je 0x4d2a8f
push ecx
call edi
push dword [ebp - 0x154]
call fcn.0060e3d9
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.0061f478
mov esp, ebp
pop ebp
ret
push 5
call fcn.0060d3b5
dec eax
push 6
mov dword [edi + 0x2c], eax
call fcn.0060d3b5
call fcn.00402f70
call fcn.00402f70
call fcn.00636c1b
int3