Function at 0x40591a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xda0
lea eax, [ebp - 0xda0]
push ebx
push esi
push edi
push 0x800
xor edi, edi
push edi
push eax
call fcn.00413120
push dword [ebp + 8]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0xda0]
push dword [ebp + 0xc]
push 0x42d4b8
push eax
call ebx
push edi
lea eax, [ebp - 0x5a0]
push eax
lea eax, [ebp - 0xda0]
push eax
call fcn.004022c6
lea eax, [ebp - 0xda0]
push 0x2e
push eax
call fcn.004135ac
add esp, 0x30
mov esi, eax
push str..inf
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x405a44
cmp byte [0x43cae6], 0x36
jne 0x4059a1
push eax
call fcn.00405c28
pop ecx
mov edi, eax
push 0x104
lea eax, [ebp - 0x3a0]
push eax
lea eax, [ebp - 0xda0]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea eax, [ebp - 0x3a0]
push eax
lea eax, [ebp - 0xda0]
push str.rundll32.exe_setupapi_InstallHinfSection_DefaultInstall_132__s
push eax
call ebx
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x98]
push ebx
push eax
call fcn.00413120
add esp, 0x18
mov dword [ebp - 0x98], esi
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x5a0]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xda0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405a2f
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
test edi, edi
je 0x405c23
push 1
call fcn.00405c28
pop ecx
jmp 0x405c23
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jl 0x405a8b
movzx eax, word [esi + 2]
push 0x45
pop ecx
push 0x65
pop edx
cmp ax, dx
je 0x405a64
cmp ax, cx
jne 0x405a8b
movzx eax, word [esi + 4]
cmp eax, 0x78
je 0x405a72
cmp eax, 0x58
jne 0x405a8b
movzx eax, word [esi + 6]
cmp ax, dx
je 0x405a80
cmp ax, cx
jne 0x405a8b
xor eax, eax
mov word [esi + 8], ax
add esi, 0xa
jmp 0x405a8d
xor esi, esi
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.00413120
and dword [ebp - 0x3c], 0
lea eax, [ebp - 0xda0]
and dword [ebp - 0x38], 0
add esp, 0xc
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x5a0]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x43cad8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], 0x40
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x405c23
cmp dword [ebp - 0xc], 0
je 0x405c23
push 0xffffffffffffffff
push dword [ebp - 0xc]
mov ebx, 0x103
xor esi, esi
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call edi
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x405c1a
cmp dword [ebp + 0x10], esi
je 0x405c1a
cmp dword [ebp - 4], ebx
jne 0x405b62
push esi
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 8], 1
call esi
dec ebx
cmp eax, ebx
jne 0x405b5f
push 0x64
call edi
push 0
push dword [ebp - 0xc]
call esi
cmp eax, ebx
je 0x405b4b
mov esi, dword [ebp - 8]
jmp 0x405b62
xor esi, esi
inc esi
mov ebx, 0x100
lea eax, [ebp - 0x298]
push ebx
push 0
push eax
call fcn.00413120
push ebx
lea eax, [ebp - 0x198]
push 0
push eax
call fcn.00413120
add esp, 0x18
add ebx, 0xffffffc8
mov eax, 0xbb8
test esi, esi
cmove ebx, eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3e8
call edi
xor esi, esi
push 0xa
call edi
xor eax, eax
mov word [ebp - 0x298], ax
mov word [ebp - 0x198], ax
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x298]
push eax
call fcn.00404f1f
pop ecx
pop ecx
test eax, eax
jne 0x405bdb
inc esi
cmp esi, ebx
jl 0x405ba7
jmp 0x405c23
push 0x64
call edi
xor ecx, ecx
lea eax, [ebp - 0x198]
cmp word [ebp - 0x198], cx
cmove eax, ecx
cmp word [ebp - 0x298], cx
push eax
lea eax, [ebp - 0x298]
cmove eax, ecx
push eax
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
jne 0x405bdb
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x405bdb
jmp 0x405c23
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret