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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x237]
push ebx
push eax
mov byte [ebp - 0x238], bl
call fcn.004e7d90
xor eax, eax
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x238]
push ecx
mov byte [ebp - 0x24], bl
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x103
lea edx, [ebp - 0x12f]
push ebx
push edx
mov byte [ebp - 0x130], bl
call fcn.004e7d90
add esp, 0xc
xor eax, eax
jmp 0x4ce470
mov cl, byte [ebp + eax - 0x238]
mov byte [ebp + eax - 0x130], cl
inc eax
cmp cl, bl
jne 0x4ce470
lea eax, [ebp - 0x130]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x4ce490
mov ecx, dword [str.drivers_]
mov edx, dword [0x5296dc]
mov dword [eax], ecx
mov cx, word [0x5296e0]
mov dword [eax + 4], edx
mov word [eax + 8], cx
mov eax, str.Smrf
mov ecx, eax
jmp 0x4ce4c0
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4ce4c0
lea edi, [ebp - 0x130]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4ce4d2
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x130]
rep movsb byte es:[edi], byte [esi]
dec eax
nop
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x4ce4f0
mov edx, dword [str..inf]
mov cl, byte [0x52944c]
mov dword [eax], edx
mov byte [eax + 4], cl
mov eax, dword [0x53b4b8]
cmp eax, 7
je 0x4ce588
cmp eax, 6
je 0x4ce588
cmp eax, 0xa
je 0x4ce588
cmp eax, 9
je 0x4ce588
cmp eax, 0xc
je 0x4ce588
cmp eax, 0xd
je 0x4ce588
push str._os_is_not_need_register_pnp_
push str.Driver
xor edx, edx
xor ecx, ecx
call fcn.004a5390
add esp, 8
push 2
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
cmp esi, ebx
jne 0x4ce559
push str._open_SCManager_fail_
jmp 0x4ce5c4
push 0xf01ff
push str.Smrf
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
cmp eax, ebx
je 0x4ce696
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call edi
push esi
call edi
push str._driver_already_register_
jmp 0x4ce6e7
push str._os_need_register_Pnp_
push str.Driver
xor edx, edx
xor ecx, ecx
call fcn.004a5390
push str._clear_pnp_
push str.Driver
xor edx, edx
xor ecx, ecx
call fcn.004a5390
add esp, 0x10
call fcn.004cea20
test al, al
jne 0x4ce5e8
call fcn.004cf6b0
push str._clear_pnp_fail_
push str.Driver
xor edx, edx
xor ecx, ecx
call fcn.004a5390
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call edi
lea edx, [ebp - 0x24]
push edx
xor esi, esi
call fcn.004cf1a0
add esp, 4
cmp al, 1
jne 0x4ce624
cmp esi, 3
je 0x4ce5ba
push 0x7d0
call edi
lea eax, [ebp - 0x24]
push eax
inc esi
call fcn.004cf1a0
add esp, 4
cmp al, 1
je 0x4ce607
push str._clear_pnp_success_
push str.Driver
xor edx, edx
xor ecx, ecx
call fcn.004a5390
push str._install_pnp_
push str.Driver
xor edx, edx
xor ecx, ecx
call fcn.004a5390
add esp, 0x10
call fcn.004ceba0
xor edx, edx
xor ecx, ecx
test al, al
jne 0x4ce684
push str._install_pnp_fail_
push str.Driver
call fcn.004a5390
add esp, 8
call fcn.004cf6b0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
push str._install_pnp_success_
push str.Driver
call fcn.004a5390
add esp, 8
push 0x103
lea ecx, [ebp - 0x33f]
push ebx
push ecx
mov byte [ebp - 0x340], bl
call fcn.004e7d90
add esp, 0xc
lea edx, [ebp - 0x130]
push edx
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x340]
push str._s_rundll32.exe_setupapi.dll_InstallHinfSection_DefaultInstall_128__s
push ecx
call fcn.004e5066
add esp, 0x10
push 5
lea edx, [ebp - 0x340]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
push str._register_driver_success_
push str.Driver
xor edx, edx
xor ecx, ecx
call fcn.004a5390
add esp, 8
call fcn.004ce710
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.004e3946
mov esp, ebp
pop ebp
ret