Function at 0x405617
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10a8
call fcn.00408550
push ebx
push esi
push edi
xor edi, edi
push 0x800
lea eax, [ebp - 0x10a8]
push edi
push eax
mov dword [ebp - 4], edi
call fcn.00407300
push dword [ebp + 8]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push dword [ebp + 0xc]
lea eax, [ebp - 0x10a8]
push 0x411438
push eax
call ebx
push edi
lea eax, [ebp - 0x498]
push eax
lea eax, [ebp - 0x10a8]
push eax
call fcn.004022bd
lea eax, [ebp - 0x10a8]
push 0x2e
push eax
call fcn.004073da
add esp, 0x30
mov esi, eax
push str..inf
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40576d
push 1
lea eax, [ebp - 0x8a8]
push eax
push str.rundll32.exe
call fcn.00405547
add esp, 0xc
test eax, eax
je 0x405959
cmp byte [0x41606e], 0x36
jne 0x4056c4
push edi
call fcn.0040546f
pop ecx
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x6a0]
push eax
lea eax, [ebp - 0x10a8]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea eax, [ebp - 0x6a0]
push eax
lea eax, [ebp - 0x8a8]
push eax
lea eax, [ebp - 0x10a8]
push str._s_setupapi_InstallHinfSection_DefaultInstall_132__s
push eax
call ebx
push 0x44
pop esi
push esi
lea eax, [ebp - 0x98]
push edi
push eax
call fcn.00407300
add esp, 0x1c
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x498]
push eax
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x10a8]
push eax
push edi
mov dword [ebp - 0x98], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405757
push 0xffffffffffffffff
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x54]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x50]
call esi
cmp dword [ebp - 4], edi
je 0x405959
push 1
call fcn.0040546f
pop ecx
jmp 0x405959
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jl 0x4057ae
movzx eax, word [esi + 2]
cmp eax, 0x65
je 0x405787
cmp eax, 0x45
jne 0x4057ae
movzx eax, word [esi + 4]
cmp eax, 0x78
je 0x405795
cmp eax, 0x58
jne 0x4057ae
movzx eax, word [esi + 6]
cmp eax, 0x65
je 0x4057a3
cmp eax, 0x45
jne 0x4057ae
xor eax, eax
mov word [esi + 8], ax
add esi, 0xa
jmp 0x4057b0
xor esi, esi
push 0x3c
pop ebx
push ebx
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.00407300
lea eax, [ebp - 0x10a8]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x498]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x416460]
mov dword [ebp - 0x24], eax
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], 0x40
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x405959
cmp dword [ebp - 0xc], edi
je 0x405959
push 0xffffffffffffffff
push dword [ebp - 0xc]
mov ebx, 0x103
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edi
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call esi
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x405950
cmp dword [ebp + 0x10], edi
je 0x405950
cmp dword [ebp - 8], ebx
jne 0x40587e
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push dword [ebp - 0xc]
mov dword [ebp - 4], 1
call ebx
cmp eax, 0x102
jne 0x40587e
push 0x64
call esi
push edi
push dword [ebp - 0xc]
call ebx
cmp eax, 0x102
je 0x40586d
mov ebx, 0xfc
push ebx
lea eax, [ebp - 0x294]
push edi
push eax
mov dword [ebp - 0x298], edi
call fcn.00407300
push ebx
lea eax, [ebp - 0x194]
push edi
push eax
mov dword [ebp - 0x198], edi
call fcn.00407300
add esp, 0x18
mov ebx, 0xbb8
cmp dword [ebp - 4], edi
je 0x4058bd
mov ebx, 0xc8
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3e8
call esi
mov dword [ebp - 4], edi
cmp ebx, edi
jle 0x405959
push 0xa
call esi
xor eax, eax
mov word [ebp - 0x298], ax
mov word [ebp - 0x198], ax
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x298]
call fcn.00405418
pop ecx
cmp eax, edi
jne 0x40591c
inc dword [ebp - 4]
cmp dword [ebp - 4], ebx
jl 0x4058d8
jmp 0x405959
cmp eax, edi
jne 0x40591c
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x405959
push 0x64
call esi
movzx eax, word [ebp - 0x198]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x198]
and eax, ecx
push eax
movzx eax, word [ebp - 0x298]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x298]
and eax, ecx
push eax
call dword [sym.imp.USER32.dll_FindWindowW]
jmp 0x40590d
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret