Function at 0x5ba8e111
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x5bb70c3c]
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 4], eax
je 0x5ba8e460
cmp dword [0x5bb756b4], edi
jne 0x5ba8e453
push 0x5ba5348c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
mov dword [0x5bb756b4], eax
je 0x5ba8e40e
push ebx
push esi
mov esi, 0x104
push esi
lea ecx, [ebp - 0x108]
push ecx
push eax
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x22c], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x5ba8e3ee
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [0x5bb70b70]
mov ebx, eax
test ebx, ebx
je 0x5ba8e3ec
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp - 0x21c], eax
je 0x5ba8e3ec
push eax
push ebx
push dword [ebp - 0x230]
lea eax, [ebp - 0x108]
push eax
call dword [0x5bb70b6c]
test eax, eax
je 0x5ba8e3d7
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x238]
push eax
push 0x5ba5339c
push dword [ebp - 0x21c]
call dword [0x5bb70b68]
test eax, eax
je 0x5ba8e3d7
cmp dword [ebp - 0x220], 4
jb 0x5ba8e3d7
mov eax, dword [ebp - 0x238]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push 0x5ba53358
lea eax, [ebp - 0x20c]
push esi
push eax
call sub.SHLWAPI.dll_wnsprintfA
add esp, 0x14
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
call dword [0x5bb70b68]
test eax, eax
je 0x5ba8e3d7
xor esi, esi
cmp dword [ebp - 0x220], esi
je 0x5ba8e3d7
mov eax, dword [ebp - 0x210]
mov cl, byte [eax]
mov bl, 0x2e
cmp cl, bl
je 0x5ba8e3c3
cmp cl, 0x2c
je 0x5ba8e2a9
test cl, cl
je 0x5ba8e2a9
movsx ecx, cl
inc eax
lea edx, [edi + edi*4]
lea edi, [ecx + edx*2 - 0x30]
mov dword [ebp - 0x210], eax
mov cl, byte [eax]
cmp cl, bl
jne 0x5ba8e289
cmp edi, 5
jne 0x5ba8e3c3
mov cl, byte [eax]
cmp cl, bl
je 0x5ba8e2bd
cmp cl, 0x2c
jne 0x5ba8e2e8
inc eax
jmp 0x5ba8e2e2
cmp cl, 0x2c
je 0x5ba8e2ee
test cl, cl
je 0x5ba8e2ee
mov edx, dword [ebp - 0x218]
movsx ecx, cl
lea edx, [edx + edx*4]
lea ecx, [ecx + edx*2 - 0x30]
mov dword [ebp - 0x218], ecx
inc eax
xor ecx, ecx
mov dword [ebp - 0x210], eax
mov cl, byte [eax]
cmp cl, bl
jne 0x5ba8e2c0
cmp dword [ebp - 0x218], 0x1e
sbb ecx, ecx
add ecx, 3
cmp ecx, 2
mov dword [0x5bb756b8], ecx
jne 0x5ba8e3cd
cmp byte [eax], 0
je 0x5ba8e3cd
lea eax, [ebp - 0x224]
push eax
push 1
push esi
push 0x5ba4c668
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5ba8e367
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x22c]
push eax
push esi
push esi
push 0x5ba4c8b0
push dword [ebp - 0x224]
mov dword [ebp - 0x234], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x224]
call dword [entry0]
cmp dword [ebp - 0x22c], esi
jne 0x5ba8e3cd
mov ecx, dword [ebp - 0x210]
mov al, byte [ecx]
cmp al, bl
je 0x5ba8e37f
cmp al, 0x2c
jne 0x5ba8e3a9
inc ecx
jmp 0x5ba8e3a3
cmp al, 0x2c
je 0x5ba8e3af
test al, al
je 0x5ba8e3af
mov edx, dword [ebp - 0x214]
movsx eax, al
lea edx, [edx + edx*4]
lea eax, [eax + edx*2 - 0x30]
mov dword [ebp - 0x214], eax
inc ecx
xor eax, eax
mov dword [ebp - 0x210], ecx
mov al, byte [ecx]
cmp al, bl
jne 0x5ba8e382
cmp dword [ebp - 0x214], 0x14a
sbb eax, eax
inc eax
mov dword [0x5bb756bc], eax
jmp 0x5ba8e3cd
mov dword [0x5bb756b8], 3
mov dword [ebp - 0x228], 1
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x228], 0
jne 0x5ba8e402
xor edi, edi
push dword [0x5bb756b4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x5bb756b4], edi
jmp 0x5ba8e404
xor edi, edi
cmp dword [0x5bb756b4], edi
pop esi
pop ebx
jne 0x5ba8e453
push 0x5ba4b354
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
mov dword [0x5bb756b4], eax
mov dword [0x5bb756b8], 1
jne 0x5ba8e453
push 0x5ba5f15a
push sub.SHLWAPI.dll_Ordinal_107
push edi
push edi
push 0x1472
push 0x1073
push dword [0x5bb7380c]
push dword [0x5bb73708]
call sub.MSOERT2.dll_MessageBoxInstW
xor eax, eax
cmp dword [0x5bb756b4], edi
setne al
jmp 0x5ba8e47f
mov eax, dword [0x5bb756b4]
cmp eax, edi
je 0x5ba8e470
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov dword [0x5bb756b4], edi
mov dword [0x5bb756b8], edi
inc eax
mov ecx, dword [ebp - 4]
pop edi
call fcn.5bb3f314
leave
ret 4