Function at 0x4c44e0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x56177d
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x668038]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x668038]
xor eax, esp
push eax
lea eax, [esp + 0x430]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x444]
mov ebx, dword [esp + 0x440]
push ebp
mov eax, 0x5fd800
call fcn.004c4d70
mov esi, ebp
call fcn.00412ae0
lea edi, [ebp + 0x18]
mov dword [ebp + 0x14], 0xffffffff
call fcn.00499c60
xor esi, esi
lea edi, [ebp + 0x24]
mov dword [ebp + 0x1c], esi
call fcn.00499c60
lea ecx, [esp + 0x18]
mov dword [ebp + 0x20], esi
mov dword [ebp + 0x28], 1
call fcn.004992d0
mov dword [esp + 0x438], esi
or edi, 0xffffffff
cmp word [ebx], 0x2e
push esi
lea esi, [esp + 0x18]
je 0x4c45b7
mov eax, ebx
call fcn.004993c0
mov byte [esp + 0x438], 1
mov eax, esi
push eax
mov esi, ebp
call fcn.00403540
mov byte [esp + 0x438], 0
lea ecx, [esp + 0x14]
call fcn.00499450
lea eax, [edi + 0x2f]
lea ecx, [esp + 0x18]
call fcn.00499600
jmp 0x4c45e4
lea eax, [ebx + 2]
call fcn.004993c0
mov byte [esp + 0x438], 2
lea ecx, [esp + 0x14]
push ecx
mov esi, ebp
call fcn.00403540
mov byte [esp + 0x438], 0
lea ecx, [esp + 0x14]
call fcn.00499450
push 0
or edi, 0xffffffff
mov eax, ebx
lea esi, [esp + 0x18]
call fcn.004993c0
mov byte [esp + 0x438], 3
mov edx, esi
push edx
lea edi, [esp + 0x1c]
call fcn.00499570
mov byte [esp + 0x438], 0
mov ecx, esi
call fcn.00499450
mov eax, edi
call fcn.00408130
mov ebx, eax
lea eax, [esp + 0x1c]
push eax
push 1
push 0
push ebx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4c4654
mov dword [esp + 0x438], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00499450
xor al, al
jmp 0x4c489a
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push 0
push ecx
mov dword [esp + 0x40], 1
mov dword [esp + 0x38], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x1c]
push edx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], 0
test edi, edi
jne 0x4c46e3
cmp dword [esp + 0x20], 2
jbe 0x4c46e3
push 6
lea eax, [esp + 0x30]
push 0x615bac
push eax
call dword [sym.imp.MSVCR90.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x4c4639
push ebp
lea ecx, [esp + 0x30]
call fcn.004c48d0
add esp, 4
test al, al
jne 0x4c4782
push ebp
lea eax, [esp + 0x30]
call fcn.004c4d70
jmp 0x4c4782
lea ecx, [esp + 0x14]
call fcn.004992d0
mov byte [esp + 0x438], 4
lea ecx, [esp + 0x24]
push ecx
mov edx, 1
lea ecx, [esp + 0x1c]
call fcn.004998c0
mov byte [esp + 0x438], 5
lea edi, [esp + 0x14]
call fcn.00499530
mov byte [esp + 0x438], 4
lea ecx, [esp + 0x24]
call fcn.00499450
mov eax, edi
call fcn.00499780
push 0
or edi, 0xffffffff
mov eax, str._File
lea esi, [esp + 0x28]
call fcn.004993c0
mov byte [esp + 0x438], 6
mov edx, esi
push edx
lea edi, [esp + 0x18]
call fcn.00499570
mov byte [esp + 0x438], 4
mov ecx, esi
call fcn.00499450
mov eax, edi
call fcn.00408130
push ebp
call fcn.004c4d70
mov byte [esp + 0x438], 0
mov ecx, edi
call fcn.00499450
lea edi, [ebp + 0x24]
mov eax, edi
call fcn.00499c50
test al, al
je 0x4c47f9
push edi
push ebx
call fcn.004c51c0
add esp, 8
mov eax, edi
call fcn.00499c50
test al, al
je 0x4c47f9
mov esi, dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
lea eax, [esp + 0x14]
push eax
push 0
push 0x6118c0
push ebx
push 1
push 0x20
mov dword [esp + 0x2c], 0
call esi
test eax, eax
jl 0x4c47f9
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call fcn.004994c0
push eax
push 0x6118c0
push ebx
push 1
push 0x20
call esi
mov ecx, edi
test eax, eax
jge 0x4c47f1
xor eax, eax
jmp 0x4c47f4
or eax, 0xffffffff
call fcn.00499c10
lea edx, [esp + 0x1c]
push edx
push 1
push 0
push ebx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4c4639
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x30]
push edx
push 0
push str.Content_Type
push eax
mov dword [esp + 0x40], 1
mov dword [esp + 0x38], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x1c]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [esp + 0x1c], eax
cmp esi, eax
jne 0x4c4881
cmp dword [esp + 0x20], 2
jbe 0x4c4881
push 4
lea edx, [esp + 0x30]
push 0x615be4
push edx
call dword [sym.imp.MSVCR90.dll__wcsnicmp]
add esp, 0xc
neg eax
sbb eax, eax
neg eax
inc eax
mov dword [ebp + 0x20], eax
mov dword [esp + 0x438], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00499450
mov al, 1
mov ecx, dword [esp + 0x430]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.0054eee2
add esp, 0x428
ret