Function at 0x405ce6
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x413004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x105
xor edi, edi
mov dword [ebp - 0x22c], ecx
lea eax, [ebp - 0x218]
mov ebx, edx
push edi
push eax
mov dword [ebp - 0x224], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x220]
push ebx
push 2
push eax
push 0x401068
push 0x4010c0
push 0x4010d8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x4051a0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor esi, esi
inc esi
test eax, eax
je 0x405e10
push 0x4051c4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x405e10
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov ecx, ebx
call dword [0x414220]
call ebx
test eax, eax
je 0x405e10
cmp dword [ebp - 0x21c], edi
je 0x405e10
mov ecx, 0x4011bc
lea eax, [ebp - 0x220]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405dcb
test dx, dx
je 0x405dc7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405dcb
add eax, 4
add ecx, 4
test dx, dx
jne 0x405da5
mov eax, edi
jmp 0x405dcf
sbb eax, eax
or eax, esi
test eax, eax
jne 0x405e10
push 0x4011c0
push 0x900
push edi
push edi
lea eax, [ebp - 0x218]
push 0x105
push eax
call fcn.00410f98
add esp, 0x18
test eax, eax
jns 0x405e85
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411980
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x228]
push eax
push 0x20019
push edi
push 0x4010e8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405e78
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x105
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x230], esi
push eax
lea eax, [ebp - 0x230]
push eax
push edi
push 0x401170
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x228]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x405e7d
mov esi, 0x3eb
test esi, esi
jne 0x405dfb
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], edi
push eax
lea ecx, [ebp - 0x21c]
call fcn.00405ca6
mov esi, dword [ebp - 0x21c]
test esi, esi
je 0x405eb7
push 0x4011a8
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
jmp 0x405eb9
mov ebx, edi
test ebx, ebx
jne 0x405ef8
test esi, esi
je 0x405ecf
push 0x401194
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x405ed8
xor ebx, ebx
inc ebx
jmp 0x405f3e
push dword [ebp + 0xc]
mov ecx, edi
push dword [ebp + 8]
push dword [ebp - 0x224]
push dword [ebp - 0x22c]
call dword [0x414220]
call edi
mov ebx, eax
jmp 0x405f3e
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x224]
mov ecx, ebx
push dword [ebp + 8]
mov dword [ebp - 0x240], 0x40143c
push eax
push dword [ebp - 0x22c]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x234], edi
call dword [0x414220]
call ebx
lea ecx, [ebp - 0x240]
mov ebx, eax
call fcn.00405c45
test esi, esi
je 0x405f49
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
jmp 0x405dfd