Function at 0x10015a6
Capabilities:
Accept command line arguments
Create process on windows
Get common file path
Query or enumerate registry value
Set current directory
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x610
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 1
mov dword [section..data], eax
pop edi
push edi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov al, byte [esi]
cmp al, 0x22
jne 0x10015eb
mov al, byte [esi + 1]
inc esi
test al, al
je 0x10015e3
cmp al, 0x22
jne 0x10015d7
cmp byte [esi], 0x22
jne 0x10015f5
inc esi
jmp 0x10015f5
cmp al, 0x20
jle 0x10015f5
inc esi
cmp byte [esi], 0x20
jg 0x10015ef
mov al, byte [esi]
test al, al
je 0x1001602
cmp al, 0x20
jg 0x1001602
inc esi
jmp 0x10015f5
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x610]
push esi
push eax
call ebx
call fcn.01001240
test eax, eax
je 0x1001640
cmp byte [esi], 0
je 0x1001640
push esi
call fcn.01001530
mov edi, eax
pop ecx
test edi, edi
jne 0x100170b
lea eax, [ebp - 0x610]
push eax
call fcn.01001339
pop ecx
mov edi, eax
test edi, edi
jne 0x100170b
mov dx, word [0x10011a4]
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x10a]
mov word [ebp - 0x10c], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x20e]
mov word [ebp - 0x210], dx
mov esi, 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x10c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x10c]
push 0x10011a0
push eax
call edi
lea eax, [ebp - 0x210]
push esi
push eax
push 0x3e8
push dword [section..data]
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x10016cd
lea eax, [ebp - 0x210]
push 0x1001198
push eax
call ebx
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x10c]
push eax
call edi
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x10c]
push 1
push eax
lea eax, [ebp - 0x610]
push eax
push 0x1001234
push 0x100122c
push 0
jmp 0x10017cd
cmp edi, 1
jne 0x10017d3
and dword [ebp - 4], 0
lea eax, [ebp - 0x210]
push 0x10011f8
push eax
mov dword [ebp - 8], 0x104
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x210]
push 0x10011a0
push eax
call esi
lea eax, [ebp - 0x210]
push 0x10011e8
push eax
call esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push edi
lea eax, [ebp - 0x210]
push esi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10017a4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
push esi
push 0x10011e0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10017a4
mov eax, dword [ebp - 8]
and byte [ebp + eax - 0x10e], 0
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [ebp - 4], esi
je 0x10017b2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10c]
push 1
push eax
lea eax, [ebp - 0x610]
push eax
push 0x10011d4
push 0x100122c
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]