Function at 0x44068c
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push 0x710
mov eax, 0x5aa794
call fcn.00588aeb
mov dword [ebp - 0x67c], ecx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 0x680], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x6a8], eax
xor edi, edi
xor eax, eax
mov dword [ebp - 0x690], esi
mov dword [ebp - 0x630], 7
mov dword [ebp - 0x634], edi
mov word [ebp - 0x644], ax
lea ecx, [ebp - 0x6a0]
mov dword [ebp - 4], edi
mov dword [ebp - 0x6a0], edi
mov dword [ebp - 0x69c], edi
call fcn.0041e4ba
mov dword [ebp - 0x6a0], eax
xor eax, eax
inc eax
lea ecx, [ebp - 0x698]
mov byte [ebp - 4], al
mov dword [ebp - 0x698], edi
mov dword [ebp - 0x694], edi
call fcn.0041e4ba
mov dword [ebp - 0x698], eax
mov byte [ebp - 4], 2
test esi, esi
je 0x440731
xor eax, eax
cmp ax, word [esi]
je 0x440731
xor ecx, ecx
lea edi, [ecx + 1]
xor eax, eax
mov esi, 0x206
push esi
xor ecx, ecx
mov word [ebp - 0x218], ax
push ecx
lea eax, [ebp - 0x216]
push eax
call fcn.00587a70
xor eax, eax
push esi
mov word [ebp - 0x420], ax
xor esi, esi
lea eax, [ebp - 0x41e]
push esi
push eax
call fcn.00587a70
add esp, 0x18
call fcn.00473832
mov eax, dword [eax + 4]
cmp dword [eax + 0x45b4], esi
je 0x440782
xor eax, eax
lea ebx, [eax + 1]
jmp 0x4407c5
mov eax, dword [ebp - 0x680]
cmp dword [eax + 0x38], esi
je 0x4407c3
cmp dword [eax + 0x20], esi
je 0x4407c3
call fcn.00473832
mov ecx, dword [eax + 4]
lea ecx, [ecx + 0xcc]
call fcn.00412818
test eax, eax
je 0x4407c3
call fcn.00473832
mov ecx, dword [eax + 4]
lea ecx, [ecx + 0xcc]
call fcn.00412818
xor ecx, ecx
cmp cx, word [eax]
jne 0x4407cd
mov ebx, esi
xor edi, edi
inc edi
jmp 0x441001
push 0x44
pop esi
push esi
xor ecx, ecx
push ecx
lea eax, [ebp - 0x71c]
push eax
call fcn.00587a70
mov dword [ebp - 0x71c], esi
xor esi, esi
inc esi
add esp, 0xc
mov dword [ebp - 0x6f0], esi
call fcn.00473832
mov ecx, dword [eax + 4]
lea ecx, [ecx + 0xcc]
call fcn.00419e2e
and eax, 0xf
cmp al, 2
jne 0x440817
xor eax, eax
mov word [ebp - 0x6ec], ax
jmp 0x44081e
mov word [ebp - 0x6ec], si
lea eax, [ebp - 0x62c]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [ebp - 0x67c]
push dword [eax + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push str.use_printui_I_F._n
push str.CInstallAction::InstallPrinterClassDriver
push 5
call fcn.00423f75
mov esi, str.rundll32
push esi
call fcn.00588144
add esp, 0x10
lea ecx, [ebp - 0x644]
push eax
push esi
call fcn.00403cef
call fcn.00473832
mov ecx, dword [eax + 4]
lea ecx, [ecx + 0xcc]
call fcn.00412818
mov esi, eax
xor eax, eax
cmp word [esi], ax
je 0x44088e
push esi
call fcn.00588144
pop ecx
push eax
push esi
lea ecx, [ebp - 0x644]
call fcn.00403b92
mov esi, str._PrintUIEntry
push esi
call fcn.00588144
pop ecx
push eax
push esi
lea ecx, [ebp - 0x644]
call fcn.00403b92
mov eax, str._ia__q
test edi, edi
mov esi, str._if__q
cmove esi, eax
xor eax, eax
cmp word [esi], ax
je 0x4408d1
push esi
call fcn.00588144
pop ecx
push eax
push esi
lea ecx, [ebp - 0x644]
call fcn.00403b92
mov esi, str._m__
push esi
call fcn.00588144
pop ecx
push eax
push esi
lea ecx, [ebp - 0x644]
call fcn.00403b92
mov esi, dword [ebp - 0x680]
add esi, 0x10
cmp dword [esi + 0x14], 8
jb 0x440908
mov esi, dword [esi]
xor eax, eax
cmp word [esi], ax
je 0x440916
push esi
call fcn.00588144
pop ecx
push eax
push esi
lea ecx, [ebp - 0x644]
call fcn.00403b92
mov esi, str.___f__
push esi
call fcn.00588144
pop ecx
push eax
push esi
lea ecx, [ebp - 0x644]
call fcn.00403b92
mov esi, dword [ebp - 0x680]
add esi, 0x28
cmp dword [esi + 0x14], 8
jb 0x44094d
mov esi, dword [esi]
xor eax, eax
cmp word [esi], ax
je 0x44095b
push esi
call fcn.00588144
pop ecx
push eax
push esi
lea ecx, [ebp - 0x644]
call fcn.00403b92
mov esi, 0x5ca810
push esi
call fcn.00588144
pop ecx
push eax
push esi
lea ecx, [ebp - 0x644]
call fcn.00403b92
test edi, edi
je 0x4409e1
mov esi, str.__r__
push esi
call fcn.00588144
pop ecx
push eax
push esi
lea ecx, [ebp - 0x644]
call fcn.00403b92
mov esi, dword [ebp - 0x690]
xor edi, edi
cmp word [esi], di
jne 0x4409af
mov eax, edi
jmp 0x4409b6
push esi
call fcn.00588144
pop ecx
push eax
push esi
lea ecx, [ebp - 0x644]
call fcn.00403b92
push 0x5ca810
call fcn.00588144
pop ecx
push eax
push 0x5ca810
lea ecx, [ebp - 0x644]
call fcn.00403b92
jmp 0x4409e9
mov esi, dword [ebp - 0x690]
xor edi, edi
test ebx, ebx
je 0x440a45
xor eax, eax
cmp ax, word [ebx]
je 0x440a45
mov edi, str.__b__
push edi
call fcn.00588144
pop ecx
push eax
push edi
lea ecx, [ebp - 0x644]
call fcn.00403b92
xor edi, edi
cmp word [ebx], di
jne 0x440a18
mov eax, edi
jmp 0x440a1f
push ebx
call fcn.00588144
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x644]
call fcn.00403b92
mov ebx, 0x5ca810
push ebx
call fcn.00588144
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x644]
call fcn.00403b92
cmp dword [ebp - 0x630], 8
lea eax, [ebp - 0x644]
cmovae eax, dword [ebp - 0x644]
push eax
push str.CmdLine____1_s___n
push str.CInstallAction::InstallPrinterClassDriver
push 4
call fcn.00423f75
add esp, 0x10
test esi, esi
je 0x440aa3
xor eax, eax
cmp ax, word [esi]
je 0x440aa3
lea eax, [ebp - 0x6a0]
push eax
call fcn.004128d8
pop ecx
lea eax, [ebp - 0x6a4]
push eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x6a4], 0x104
call sub.WINSPOOL.DRV_Ordinal_203
cmp dword [ebp - 0x630], 8
lea ecx, [ebp - 0x6d4]
push ecx
lea ecx, [ebp - 0x71c]
push ecx
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x644]
cmovae eax, dword [ebp - 0x644]
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test ebx, ebx
jne 0x440af2
push str.CreateProcess_failed._n
push str.CInstallAction::InstallPrinterClassDriver
push 2
call fcn.00423f75
add esp, 0xc
jmp 0x440ba3
push str.CreateProcess_success._n
push str.CInstallAction::InstallPrinterClassDriver
push 4
call fcn.00423f75
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0xc
push dword [ebp - 0x6d0]
call esi
call fcn.00473832
mov ecx, dword [eax + 4]
call fcn.00474e21
push 0x1f4
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
push dword [ebp - 0x6d4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x63a9dc], 0
mov edi, eax
jne 0x440b52
cmp dword [0x63a9e0], 0
je 0x440b6a
call fcn.00473832
mov ecx, dword [eax + 4]
cmp dword [ecx + 0x45bc], 0
je 0x440b6a
call fcn.004099a0
jmp 0x440b6f
call fcn.0046f113
lea ecx, [ebp - 0x675]
mov byte [ebp - 4], 2
call fcn.0040712f
cmp edi, 0x102
je 0x440b14
lea eax, [ebp - 0x6d8]
push eax
push dword [ebp - 0x6d4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x6d4]
call esi
xor edi, edi
mov eax, dword [ebp - 0x680]
mov esi, edi
cmp dword [eax + 0xb0], 0
mov dword [ebp - 0x688], esi
mov dword [ebp - 0x684], edi
je 0x440bf0
add eax, 0xa0
cmp dword [eax + 0x14], 8
jb 0x440bcd
mov eax, dword [eax]
lea ecx, [ebp - 0x688]
push ecx
xor ecx, ecx
inc ecx
push ecx
mov ecx, dword [ebp - 0x67c]
push eax
call fcn.0043a37a
mov esi, dword [ebp - 0x688]
mov eax, dword [ebp - 0x680]
cmp dword [eax + 0xc8], 0
je 0x440c22
add eax, 0xb8
cmp dword [eax + 0x14], 8
jb 0x440c06
mov eax, dword [eax]
lea ecx, [ebp - 0x684]
push ecx
xor ecx, ecx
push ecx
mov ecx, dword [ebp - 0x67c]
push eax
call fcn.0043a37a
mov edi, dword [ebp - 0x684]
test esi, esi
jne 0x440c2a
test edi, edi
je 0x440c48
mov edi, dword [ebp - 0x67c]
xor eax, eax
inc eax
or dword [edi + 0xb0], eax
cmp dword [ebp + 0x18], 0
je 0x440c4e
or dword [edi + 0xb0], 2
jmp 0x440c4e
mov edi, dword [ebp - 0x67c]
push 7
pop edx
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x648], edx
mov dword [ebp - 0x64c], ecx
mov word [ebp - 0x65c], ax
mov dword [ebp - 0x660], edx
mov dword [ebp - 0x664], ecx
mov word [ebp - 0x674], ax
lea eax, [ebp - 0x698]
push eax
mov byte [ebp - 4], 5
call fcn.004128d8
lea eax, [ebp - 0x6a0]
push eax
lea eax, [ebp - 0x698]
push eax
call fcn.00409969
mov esi, dword [ebp - 0x680]
add esi, 0x10
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x440cb2
mov esi, dword [esi]
xor eax, eax
cmp word [esi], ax
je 0x440cc0
push esi
call fcn.00588144
pop ecx
push eax
push esi
lea ecx, [ebp - 0x65c]
call fcn.00403cef
test ebx, ebx
je 0x440fa6
mov eax, dword [ebp - 0x6a8]
test eax, eax
je 0x440d1e
xor ecx, ecx
cmp cx, word [eax]
je 0x440d1e
push eax
xor eax, eax
cmp dword [ebp - 0x648], 8
push eax
push eax
lea eax, [ebp - 0x65c]
cmovae eax, dword [ebp - 0x65c]
push eax
push ecx
push ecx
mov ecx, esp
lea eax, [ebp - 0x675]
push eax
lea eax, [ebp - 0x698]
push eax
call fcn.00405cb9
mov ecx, edi
call fcn.00448979
mov esi, dword [ebp - 0x690]
test esi, esi
je 0x440fa6
xor eax, eax
cmp ax, word [esi]
je 0x440fa6
lea eax, [ebp - 0x6a4]
push eax
lea eax, [ebp - 0x420]
push eax
mov dword [ebp - 0x6a4], 0x104
call sub.WINSPOOL.DRV_Ordinal_203
lea eax, [ebp - 0x218]
test eax, eax
je 0x440f31
xor eax, eax
cmp ax, word [ebp - 0x218]
je 0x440f31
lea eax, [ebp - 0x420]
test eax, eax
je 0x440f31
xor eax, eax
cmp ax, word [ebp - 0x420]
je 0x440f31
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0058b073
pop ecx
pop ecx
test eax, eax
je 0x440f31
push str.DefaultPrinter_has_been_changed_by_operating_system._n
push str.CInstallAction::InstallPrinterClassDriver
push 4
call fcn.00423f75
add esp, 0xc
lea ecx, [ebp - 0x6c4]
call fcn.0046c48f
xor eax, eax
lea ecx, [ebp - 0x68c]
mov byte [ebp - 4], 6
mov dword [ebp - 0x68c], eax
mov dword [ebp - 0x688], eax
call fcn.0041e4ba
mov dword [ebp - 0x68c], eax
mov edi, dword [ebp - 0x6a0]
mov byte [ebp - 4], 7
mov esi, dword [edi]
mov dword [ebp - 0x684], esi
jmp 0x440eb0
lea eax, [esi + 0x10]
cmp dword [eax + 0x14], 8
jb 0x440e11
mov ecx, dword [eax]
jmp 0x440e13
mov ecx, eax
test ecx, ecx
je 0x440e9f
cmp dword [eax + 0x14], 8
jb 0x440e25
mov ecx, dword [eax]
jmp 0x440e27
mov ecx, eax
xor edx, edx
cmp dx, word [ecx]
je 0x440e9f
cmp dword [eax + 0x14], 8
jb 0x440e36
mov eax, dword [eax]
push 0x5c
push eax
lea ecx, [ebp - 0x6c4]
call fcn.0046d9ee
xor edi, edi
push edi
lea ecx, [ebp - 0x6c4]
call fcn.0046caa8
test eax, eax
je 0x440e99
xor eax, eax
inc eax
push eax
lea ecx, [ebp - 0x6c4]
call fcn.0046caa8
test eax, eax
je 0x440e99
push 2
lea ecx, [ebp - 0x6c4]
call fcn.0046caa8
test eax, eax
je 0x440e99
push edi
lea ecx, [ebp - 0x6c4]
call fcn.0046caa8
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0058b073
pop ecx
pop ecx
test eax, eax
je 0x440eba
mov edi, dword [ebp - 0x6a0]
lea ecx, [ebp - 0x684]
call fcn.0042049a
mov esi, dword [ebp - 0x684]
cmp esi, edi
jne 0x440e04
jmp 0x440f11
add esi, 0x10
push esi
lea eax, [ebp - 0x6ac]
push eax
lea ecx, [ebp - 0x68c]
call fcn.0041fc0f
xor esi, esi
inc esi
push esi
push 2
lea ecx, [ebp - 0x6c4]
call fcn.0046caa8
push eax
push esi
lea ecx, [ebp - 0x6c4]
call fcn.0046caa8
push eax
push ecx
push ecx
mov ecx, esp
lea eax, [ebp - 0x675]
push eax
lea eax, [ebp - 0x68c]
push eax
call fcn.00405cb9
mov ecx, dword [ebp - 0x67c]
call fcn.00448268
lea ecx, [ebp - 0x68c]
call fcn.00406bbf
lea ecx, [ebp - 0x6c4]
mov byte [ebp - 4], 5
call fcn.0046c546
mov esi, dword [ebp - 0x690]
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x440fa8
cmp word [esi], di
jne 0x440f41
mov eax, edi
jmp 0x440f48
push esi
call fcn.00588144
pop ecx
push eax
push esi
lea ecx, [ebp - 0x674]
call fcn.00403cef
cmp dword [ebp - 0x660], 8
push edi
lea eax, [ebp - 0x674]
cmovae eax, dword [ebp - 0x674]
cmp dword [ebp - 0x648], 8
push eax
lea eax, [ebp - 0x65c]
cmovae eax, dword [ebp - 0x65c]
push eax
push ecx
push ecx
mov ecx, esp
lea eax, [ebp - 0x675]
push eax
lea eax, [ebp - 0x698]
push eax
call fcn.00405cb9
mov esi, dword [ebp - 0x67c]
mov ecx, esi
call fcn.00448268
jmp 0x440fae
xor edi, edi
mov esi, dword [ebp - 0x67c]
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test ebx, ebx
je 0x440fce
cmp dword [esi + 0xb0], edi
je 0x440fce
mov dword [esi + 8], 0x64
xor edi, edi
inc edi
cmp dword [ebp + 0x14], 0
je 0x440fe5
push edi
push dword [ebp - 0x680]
mov ecx, esi
call fcn.0043e282
xor esi, esi
push esi
push edi
lea ecx, [ebp - 0x674]
call fcn.00403a7f
push esi
push edi
lea ecx, [ebp - 0x65c]
call fcn.00403a7f
lea ecx, [ebp - 0x698]
call fcn.00406bbf
lea ecx, [ebp - 0x6a0]
call fcn.00406bbf
push esi
push edi
lea ecx, [ebp - 0x644]
call fcn.00403a7f
mov eax, ebx
call fcn.00588a9a
ret 0x1c