Function at 0x501140
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
mov edi, dword [0x76cab0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x25c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x25c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [str.ShortcutItem]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [ebp - 0x25c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x76665c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x839d48]
mov ecx, ebx
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jne 0x5011e2
mov eax, 0x7367f4
push 0x76be10
push eax
call fcn.0070eea0
add esp, 8
test eax, eax
je 0x501201
lea edx, [ebp - 0x25c]
mov edi, 0x76be10
jmp 0x501216
mov edi, dword [0x839d48]
test edi, edi
jne 0x501210
mov edi, 0x7367f4
lea edx, [ebp - 0x25c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [ebp - 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 1
lea ecx, [ebp - 0x25c]
push 0
push ecx
push reloc.ijl15.dll_Ordinal_2
call esi
test eax, eax
jne 0x5013d3
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 8]
lea ecx, [ebp - 0x25c]
push eax
push 1
push 0
push ecx
push reloc.ijl15.dll_Ordinal_2
call esi
test eax, eax
jne 0x5013d3
mov ecx, 0x8365d0
call fcn.006c2e40
mov ecx, 0x8365d0
call fcn.006e34d0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor esi, esi
mov edx, dword [0x837a40]
mov eax, dword [0x80fe3c]
push edx
push eax
push esi
lea ecx, [ebp - 0x5c]
push str.SITEM_d_d_d
push ecx
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x10], 0x20
call fcn.0070dea8
mov ecx, 8
xor eax, eax
lea edi, [ebp - 0x38]
add esp, 0x14
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x38]
push edx
lea ecx, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push ecx
lea edx, [ebp - 0x5c]
push 0
push edx
push eax
call ebx
mov ecx, eax
mov eax, 0x38e38e39
imul esi
sar edx, 1
mov eax, edx
xor edi, edi
shr eax, 0x1f
add edx, eax
test ecx, ecx
mov byte [0x837040], dl
jne 0x501327
cmp byte [ebp - 0x38], 0x23
je 0x501320
lea ecx, [ebp - 0x38]
push esi
push ecx
jmp 0x50132d
mov edi, 1
jmp 0x501337
push esi
push str.nothing
mov ecx, 0x8365d0
call fcn.006c2f10
mov edx, dword [0x837a40]
mov eax, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov eax, dword [0x80fe3c]
push edx
push eax
push esi
lea ecx, [ebp - 0x5c]
push str.S_SKILL_USE_LEVEL_d_d_d
push ecx
call fcn.0070dea8
add esp, 0x14
lea edx, [ebp - 0x10]
lea eax, [ebp - 4]
lea ecx, [ebp - 0xc]
push edx
push eax
mov eax, dword [ebp - 8]
push ecx
lea edx, [ebp - 0x5c]
push 0
push edx
push eax
mov dword [ebp - 4], 0
call ebx
test eax, eax
push esi
jne 0x501395
mov ecx, dword [ebp - 4]
push ecx
mov ecx, 0x8365d0
call fcn.006e3470
jmp 0x5013a8
push 0
mov ecx, 0x8365d0
call fcn.006e3470
mov dword [ebp - 4], 0
test edi, edi
je 0x5013bf
mov edx, dword [ebp - 4]
push esi
lea eax, [ebp - 0x38]
push edx
push eax
mov ecx, 0x8365d0
call fcn.006e3510
inc esi
cmp esi, 0x24
jl 0x5012a3
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov byte [0x837040], 0
pop ebx
mov esp, ebp
pop ebp
ret