Function at 0x41514d
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20a4
call fcn.004294c0
push ebx
push esi
push edi
push 1
mov esi, ecx
xor ebx, ebx
mov ecx, dword [ebp + 0xc]
pop edi
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x34], edi
mov word [ebp - 0x2e], bx
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x30], di
call fcn.00402efd
mov ecx, eax
call fcn.00401f26
push eax
lea eax, [ebp - 0x20a4]
push eax
call fcn.00428db0
cmp dword [ebp + 0x10], 2
pop ecx
pop ecx
jb 0x4151cb
mov ecx, dword [ebp + 0xc]
push edi
call fcn.00402efd
mov ecx, eax
call fcn.00401f26
push eax
lea eax, [ebp - 0x10a4]
push eax
call fcn.00428db0
pop ecx
pop ecx
jmp 0x4151d1
mov byte [ebp - 0x10a4], bl
cmp byte [ebp - 0x10a4], bl
jne 0x4151eb
lea eax, [ebp - 0x10a4]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
cmp dword [ebp + 0x10], 3
jne 0x415206
mov ecx, dword [ebp + 0xc]
push 2
call fcn.00402efd
mov ecx, eax
call fcn.00401f9e
mov word [ebp - 0x30], ax
cmp byte [esi + 0x2ecc], bl
je 0x415328
push str.advapi32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x415318
push 0x436168
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x41530f
mov ax, word [ebp - 0x30]
push ebx
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x20a4]
push eax
mov dword [ebp - 0xa4], 0x44
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x78], edi
mov word [ebp - 0x72], bx
mov dword [ebp - 0x70], ebx
call fcn.00427c31
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x10a4]
push ebx
push eax
call fcn.00427c31
add esp, 0x10
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], eax
push ecx
lea ecx, [ebp - 0xa4]
push ecx
push eax
push ebx
push ebx
push dword [ebp + 0xc]
push ebx
push dword [esi + 0x2ed0]
push dword [esi + 0x2edc]
push dword [esi + 0x2ed8]
push dword [esi + 0x2ed4]
call dword [ebp + 0x10]
push dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
call fcn.00428f1b
push dword [ebp - 8]
call fcn.00428f1b
pop ecx
pop ecx
cmp dword [ebp + 0x10], ebx
jne 0x415360
cmp dword [ebp - 4], ebx
je 0x4152e9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
cmp byte [esi + 0xa4], 1
jne 0x41534f
push 0xffffffffffffffff
mov ecx, esi
call fcn.004074d5
push eax
push 0x87
mov ecx, esi
call fcn.00407375
mov eax, edi
jmp 0x4153ab
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push 0xffffffffffffffff
push 0x9b
mov ecx, esi
call fcn.004071c7
jmp 0x415308
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x10a4]
push eax
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20a4]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
mov dword [ebp + 0x10], eax
jmp 0x4152d2
mov ecx, dword [ebp + 0x14]
push ebx
mov dword [esi + 0x164], edi
call fcn.0040228c
jmp 0x4153a9
cmp dword [ebp - 4], ebx
je 0x41536e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp + 8], edi
jne 0x415387
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x2ec8], eax
jmp 0x4153a9
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], eax
push ecx
fild qword [ebp - 0xc]
push ecx
mov ecx, dword [ebp + 0x14]
fstp qword [esp]
call fcn.004022e4
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10