Function at 0x41a238
Capabilities:
Query or enumerate registry value
Set current directory

Disassembly:
mov eax, 0x470124
call fcn.004549fc
sub esp, 0x26c
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp ecx, 0x2000
mov dword [eax], 1
je 0x41a2b2
cmp ecx, 0xbc2
je 0x41a2b2
cmp ecx, 0x800704c7
je 0x41a277
cmp ecx, 0x642
jne 0x41a285
cmp dword [ebp + 0x18], 0
je 0x41a285
and dword [eax], 0
jmp 0x41a553
test ecx, ecx
je 0x41a553
cmp ecx, 0x1008
je 0x41a553
mov ecx, dword [ebp - 0x14]
mov dword [0x498770], 0x66d
call fcn.00422a1b
xor eax, eax
jmp 0x41a556
push ebx
mov eax, 0x48bc50
push esi
push edi
mov ecx, eax
mov ebx, 0x4765e0
mov edi, 0x4765d8
mov dword [ebp - 0x40], ebx
test ecx, ecx
mov dword [ebp - 0x20], edi
jne 0x41a2d5
mov eax, 0x494ad8
xor esi, esi
lea ecx, [ebp + 0x1b]
push esi
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.004011a9
mov eax, dword [0x47676c]
mov dword [ebp - 4], esi
cmp eax, esi
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x50], edi
jne 0x41a2fc
mov eax, 0x494ad8
lea ecx, [ebp - 0x15]
push esi
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.004011a9
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x40]
push esi
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
push eax
call fcn.00401166
mov ecx, eax
call fcn.0042f4cc
and byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
mov byte [ebp + 0x17], al
call fcn.00401093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401093
lea eax, [ebp + 0x1b]
push 1
mov esi, 0x48bc10
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.00401889
mov eax, dword [eax + 8]
mov dword [ebp - 4], 2
test eax, eax
jne 0x41a368
mov eax, 0x4765fc
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 0x1ee
movzx eax, byte [ebp + 0x17]
push eax
lea eax, [ebp - 0x48]
push dword [ebp + 8]
push 0x48bb6c
push eax
call fcn.0040a580
or dword [ebp - 4], 0xffffffff
add esp, 0x10
lea ecx, [ebp - 0x40]
call fcn.00401093
call fcn.0043709a
test eax, eax
jne 0x41a442
cmp dword [ebp + 8], 0xbc2
jne 0x41a3b6
cmp byte [ebp + 0x17], al
je 0x41a442
cmp byte [0x4946b8], 0
jne 0x41a3c8
cmp byte [0x498ea8], 0
je 0x41a431
lea eax, [ebp + 0xb]
push 1
push eax
push esi
lea ecx, [ebp - 0x70]
call fcn.00401889
mov eax, 0x48bb3c
mov dword [ebp - 4], 5
mov ecx, eax
mov dword [ebp - 0x40], ebx
test ecx, ecx
mov dword [ebp - 0x20], edi
jne 0x41a3f4
mov eax, 0x494ad8
lea ecx, [ebp + 0x17]
push 0
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.004011a9
lea eax, [ebp - 0x70]
push 0x1f9
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 6
call fcn.004659d0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.00401093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00401093
mov eax, dword [ebp + 0xc]
push 1
mov dword [eax], 2
pop eax
jmp 0x41a4ca
cmp byte [0x4946b8], 0
jne 0x41a454
cmp byte [0x498ea8], 0
je 0x41a4bd
lea eax, [ebp + 0xb]
push 1
push eax
push esi
lea ecx, [ebp - 0x70]
call fcn.00401889
mov eax, 0x48baa4
mov dword [ebp - 4], 3
mov ecx, eax
mov dword [ebp - 0x40], ebx
test ecx, ecx
mov dword [ebp - 0x20], edi
jne 0x41a480
mov eax, 0x494ad8
lea ecx, [ebp + 0x17]
push 0
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.004011a9
lea eax, [ebp - 0x70]
push 0x1f2
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 4
call fcn.004659d0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00401093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00401093
mov ecx, dword [ebp + 0xc]
push 1
pop eax
mov dword [ecx], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x14]
xor esi, esi
mov dword [ebp - 0x10], esi
mov dword [ecx + 0x54], eax
push 0x20019
push 0x48ba3c
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 7
call fcn.00417089
test eax, eax
jne 0x41a542
mov ecx, 0x81
lea edi, [ebp - 0x276]
mov word [ebp - 0x278], si
mov dword [ebp + 0xc], 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp + 0xc]
mov dword [ebp + 0x10], esi
push eax
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp + 0x10]
push eax
push esi
push 0x48ba18
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x278]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp dword [ebp - 0x10], esi
pop edi
pop esi
pop ebx
je 0x41a553
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0x14