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

Disassembly:
mov eax, 0x483af0
call fcn.0046746c
sub esp, 0x168
mov eax, dword [ebp + 0x14]
push ebx
push edi
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 8]
push 1
pop edi
cmp ecx, 0x2000
mov dword [eax], edi
je 0x419f3e
cmp ecx, 0xbc2
je 0x419f3e
xor ebx, ebx
cmp ecx, 0x800704c7
je 0x419f05
cmp ecx, 0x642
jne 0x419f11
cmp dword [ebp + 0x18], ebx
je 0x419f11
mov dword [eax], ebx
jmp 0x41a1af
cmp ecx, ebx
je 0x41a1af
cmp ecx, 0x1008
je 0x41a1af
mov ecx, dword [ebp - 0x18]
mov dword [0x4ac178], 0x66d
call fcn.004221fe
xor eax, eax
jmp 0x41a1b1
push esi
lea eax, [ebp + 0x1b]
push edi
push eax
push 0x4a1808
lea ecx, [ebp - 0x70]
call fcn.00401884
lea eax, [ebp - 0x11]
push edi
push eax
xor ebx, ebx
push dword [0x48b7ec]
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], ebx
call fcn.00401884
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x70]
push ebx
push eax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push eax
call fcn.00401166
mov ecx, eax
call fcn.0042e961
lea ecx, [ebp - 0x48]
mov byte [ebp + 0x17], al
mov byte [ebp - 4], bl
call fcn.00401093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00401093
lea eax, [ebp + 0x1b]
push edi
mov esi, 0x4a17c8
push eax
push esi
lea ecx, [ebp - 0x70]
call fcn.00401884
mov eax, dword [eax + 8]
mov dword [ebp - 4], 2
cmp eax, ebx
jne 0x419fc5
mov eax, 0x48b67c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0x1ee
movzx eax, byte [ebp + 0x17]
push eax
lea eax, [ebp - 0x20]
push dword [ebp + 8]
push 0x4a1724
push eax
call fcn.0040a552
or dword [ebp - 4], 0xffffffff
add esp, 0x10
lea ecx, [ebp - 0x70]
call fcn.00401093
call fcn.0043621a
test eax, eax
jne 0x41a0a0
cmp dword [ebp + 8], 0xbc2
jne 0x41a013
cmp byte [ebp + 0x17], bl
je 0x41a0a0
cmp byte [0x4a9c6c], bl
jne 0x41a023
cmp byte [0x4ac7e8], bl
je 0x41a092
lea eax, [ebp + 0xb]
push edi
push eax
push esi
lea ecx, [ebp - 0x70]
call fcn.00401884
mov eax, 0x4a16f4
mov dword [ebp - 4], 5
mov ecx, eax
mov dword [ebp - 0x48], 0x48b660
test ecx, ecx
mov dword [ebp - 0x28], 0x48b658
jne 0x41a056
mov eax, 0x4aa140
lea ecx, [ebp + 0x17]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.004011a9
lea eax, [ebp - 0x70]
push 0x1f9
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 6
call fcn.00477ed0
lea ecx, [ebp - 0x48]
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]
mov dword [eax], 2
jmp 0x41a129
cmp byte [0x4a9c6c], bl
jne 0x41a0b0
cmp byte [0x4ac7e8], bl
je 0x41a11f
lea eax, [ebp + 0xb]
push edi
push eax
push esi
lea ecx, [ebp - 0x70]
call fcn.00401884
mov eax, 0x4a165c
mov dword [ebp - 4], 3
mov ecx, eax
mov dword [ebp - 0x48], 0x48b660
test ecx, ecx
mov dword [ebp - 0x28], 0x48b658
jne 0x41a0e3
mov eax, 0x4aa140
lea ecx, [ebp + 0x17]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.004011a9
lea eax, [ebp - 0x70]
push 0x1f2
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 4
call fcn.00477ed0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.00401093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00401093
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], ebx
mov dword [eax + 0x38], edi
push 0x20019
push 0x4a1628
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 7
call fcn.00417058
test eax, eax
pop esi
jne 0x41a1a1
push 0x40
lea edi, [ebp - 0x173]
pop ecx
mov byte [ebp - 0x174], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x104
push eax
lea eax, [ebp - 0x174]
push eax
lea eax, [ebp + 0x10]
push eax
push ebx
push 0x4a1614
mov dword [ebp + 0x10], ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x174]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 1
pop edi
cmp dword [ebp - 0x10], ebx
je 0x41a1af
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14