Function at 0x502c90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
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 - 0x278]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x278]
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.SkillUseLevelInfo]
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 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 - 0x278]
push 0
push ecx
push reloc.ijl15.dll_Ordinal_2
call esi
test eax, eax
jne 0x502eda
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x278]
push eax
push 1
push 0
push ecx
push reloc.ijl15.dll_Ordinal_2
call esi
test eax, eax
jne 0x502eda
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, 1
mov edx, dword [0x837a40]
mov eax, 4
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov ecx, 0x19
xor eax, eax
lea edi, [ebp - 0x78]
push edx
rep stosd dword es:[edi], eax
push esi
call fcn.00541390
add esp, 4
push eax
lea eax, [ebp - 0x78]
push str._s_d
push eax
call fcn.0070dea8
add esp, 0x10
lea ecx, [ebp - 8]
lea edx, [ebp - 0xc]
lea eax, [ebp - 4]
push ecx
push edx
mov edx, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x78]
push 0
push ecx
push edx
call ebx
test eax, eax
jne 0x502db5
push esi
call fcn.00541480
add esp, 4
test eax, eax
je 0x502db5
mov eax, dword [ebp - 0xc]
push eax
jmp 0x502db7
push 0
push esi
mov ecx, 0x8365d0
call fcn.006d7910
inc esi
cmp esi, 0x9ea
jl 0x502d4d
mov esi, 0x1f40
mov eax, 4
mov ecx, 0x19
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
xor eax, eax
lea edi, [ebp - 0x78]
rep stosd dword es:[edi], eax
mov ecx, dword [0x837a40]
push ecx
push esi
call fcn.00541390
add esp, 4
lea edx, [ebp - 0x78]
push eax
push str._s_d
push edx
call fcn.0070dea8
add esp, 0x10
lea eax, [ebp - 8]
lea ecx, [ebp - 0xc]
lea edx, [ebp - 4]
push eax
push ecx
mov ecx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0x78]
push 0
push eax
push ecx
call ebx
test eax, eax
jne 0x502e38
push esi
call fcn.00541480
add esp, 4
test eax, eax
je 0x502e38
mov edx, dword [ebp - 0xc]
push edx
jmp 0x502e3a
push 0
push esi
mov ecx, 0x8365d0
call fcn.006d79c0
inc esi
cmp esi, 0x1f68
jl 0x502dd0
mov esi, 0x2008
mov eax, 4
mov ecx, 0x19
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
xor eax, eax
lea edi, [ebp - 0x78]
rep stosd dword es:[edi], eax
mov eax, dword [0x837a40]
push eax
push esi
call fcn.00541390
add esp, 4
lea ecx, [ebp - 0x78]
push eax
push str._s_d
push ecx
call fcn.0070dea8
add esp, 0x10
lea edx, [ebp - 8]
lea eax, [ebp - 0xc]
lea ecx, [ebp - 4]
push edx
push eax
mov eax, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0x78]
push 0
push edx
push eax
call ebx
test eax, eax
jne 0x502eba
push esi
call fcn.00541480
add esp, 4
test eax, eax
je 0x502eba
mov ecx, dword [ebp - 0xc]
push ecx
jmp 0x502ebc
push 0
push esi
mov ecx, 0x8365d0
call fcn.006d7a10
inc esi
cmp esi, 0x20fb
jl 0x502e53
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret