Function at 0x450520
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x15f4
call fcn.004badd0
push ebx
mov ebx, ecx
lea eax, [ebp - 0x60]
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
push esi
mov esi, dword [ebp + 8]
cmovne eax, ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], eax
push edi
mov dword [eax], 0
test esi, esi
je 0x450cdd
cmp word [esi], 0
je 0x450cdd
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4505bb
cmp word [edi], 0
je 0x4505b4
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45057b
test al, 0x10
jne 0x4505bb
cmp byte [ebp + 0x14], 0
je 0x4505a3
push 0
push 0
push 9
push edi
push str.Parameter_2_invalid.
mov ecx, ebx
call fcn.0040cc20
lea esp, [ebp - 0x1600]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
xor eax, eax
lea esp, [ebp - 0x1600]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov dword [ebp + 0x10], 0
xor ebx, ebx
xor edx, edx
mov dword [ebp - 8], ebx
mov edi, esi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov dword [ebp + 8], edi
test ebx, ebx
je 0x450650
push str.find
push esi
call fcn.004a44b1
add esp, 8
test eax, eax
je 0x450644
push str.explore
push esi
call fcn.004a44b1
add esp, 8
test eax, eax
je 0x450644
push str.open
push esi
call fcn.004a44b1
add esp, 8
test eax, eax
je 0x450644
push 0x4d4a64
push esi
call fcn.004a44b1
add esp, 8
test eax, eax
je 0x450644
push str.print
push esi
call fcn.004a44b1
add esp, 8
test eax, eax
je 0x450644
push str.properties
push esi
call fcn.004a44b1
add esp, 8
test eax, eax
je 0x450644
mov dword [ebp - 8], ebx
xor edx, edx
jmp 0x450699
mov edx, esi
mov edi, ebx
mov dword [ebp - 4], edx
mov dword [ebp + 8], edi
jmp 0x450699
movzx eax, word [esi]
mov ebx, esi
test ax, ax
je 0x450699
mov edi, eax
nop dword [eax]
mov ecx, 0x4d98bc
mov edx, 0x20
nop word [eax + eax]
cmp di, dx
je 0x450717
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x450670
movzx eax, word [ebx + 2]
add ebx, 2
mov edi, eax
test ax, ax
jne 0x450660
xor edx, edx
mov edi, esi
mov ebx, dword [ebp - 0xc]
xor ecx, ecx
cmp byte [ebp + 0x24], cl
je 0x4507d1
mov eax, dword [ebx + 0x6ec]
test eax, eax
je 0x4506b6
cmp dword [eax + 8], ecx
jne 0x4506dc
mov eax, dword [ebx + 0x6f8]
test eax, eax
je 0x4506c5
cmp dword [eax + 8], ecx
jne 0x4506dc
mov eax, dword [ebx + 0x704]
test eax, eax
je 0x4507d1
cmp dword [eax + 8], ecx
je 0x4507d1
mov byte [ebp + 0x27], 1
test edx, edx
je 0x4507d4
cmp byte [ebp + 0x14], cl
je 0x4505a3
push 0
push 0
push 9
push 0x4d3ee8
push str.System_verbs_unsupported_with_RunAs.
mov ecx, ebx
call fcn.0040cc20
lea esp, [ebp - 0x1600]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
sub ebx, esi
and ebx, 0xfffffffe
lea eax, [ebx + 2]
call fcn.004baba0
mov eax, esp
push ebx
push esi
push eax
call fcn.004a20f0
mov edi, eax
add esp, 0xc
xor eax, eax
mov word [ebx + edi], ax
cmp word [edi], 0x2a
jne 0x450747
lea edx, [edi + 2]
mov dword [ebp - 4], edx
jmp 0x4507bc
push str.find
push edi
call fcn.004a44b1
add esp, 8
test eax, eax
je 0x4507b7
push str.explore
push edi
call fcn.004a44b1
add esp, 8
test eax, eax
je 0x4507b7
push str.open
push edi
call fcn.004a44b1
add esp, 8
test eax, eax
je 0x4507b7
push 0x4d4a64
push edi
call fcn.004a44b1
add esp, 8
test eax, eax
je 0x4507b7
push str.print
push edi
call fcn.004a44b1
add esp, 8
test eax, eax
je 0x4507b7
push str.properties
push edi
call fcn.004a44b1
add esp, 8
test eax, eax
jne 0x450695
mov edx, edi
mov dword [ebp - 4], edi
test edx, edx
je 0x450697
lea edi, [esi + 2]
add edi, ebx
mov dword [ebp + 8], edi
jmp 0x450699
mov byte [ebp + 0x27], cl
lea edx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4507d7
sub edi, edx
sar edi, 1
cmp edi, 0x4001
jb 0x45081d
cmp byte [ebp + 0x14], cl
je 0x4505a3
push 0
push 0
push 9
push 0x4d3ee8
push str.String_too_long.
mov ecx, ebx
call fcn.0040cc20
lea esp, [ebp - 0x1600]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov ebx, dword [ebp + 0x18]
cmp dword [ebp - 4], ecx
jne 0x450a51
xorps xmm0, xmm0
mov dword [ebp - 0xa8], 0x44
xor eax, eax
movlpd qword [ebp - 0xa4], xmm0
movlpd qword [ebp - 0x9c], xmm0
movlpd qword [ebp - 0x94], xmm0
movlpd qword [ebp - 0x8c], xmm0
movlpd qword [ebp - 0x84], xmm0
movlpd qword [ebp - 0x76], xmm0
movlpd qword [ebp - 0x6e], xmm0
mov word [ebp - 0x66], ax
mov dword [ebp - 0x7c], 1
test ebx, ebx
je 0x4508c2
cmp word [ebx], ax
je 0x4508c2
push 0x4dac64
push ebx
call fcn.004a44b1
add esp, 8
test eax, eax
jne 0x450897
mov eax, 6
jmp 0x4508c7
push 0x4da0bc
push ebx
call fcn.004a44b1
add esp, 8
test eax, eax
jne 0x4508b0
mov eax, 3
jmp 0x4508c7
push str.Hide
push ebx
call fcn.004a44b1
add esp, 8
test eax, eax
je 0x4508c7
mov eax, 1
mov word [ebp - 0x78], ax
xorps xmm0, xmm0
mov eax, dword [ebp + 0xc]
movups xmmword [ebp - 0x20], xmm0
test eax, eax
je 0x45091e
cmp word [eax], 0
je 0x45091e
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4508e4
sub ecx, edx
sar ecx, 1
lea eax, [ecx + edi]
lea eax, [eax*2 + 0x14]
call fcn.004baba0
mov eax, esp
push dword [ebp + 0xc]
mov dword [ebp + 0x18], eax
push esi
push str.__s___s
push eax
call fcn.00406800
mov edx, dword [ebp + 0x18]
add esp, 0x10
jmp 0x450943
lea eax, [edi*2 + 2]
call fcn.004baba0
mov edx, esp
mov ecx, edx
mov dword [ebp + 0x18], edx
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x450933
cmp byte [ebp + 0x27], 0
je 0x450abb
xor eax, eax
mov dword [ebp - 0xf0], 0x44
xorps xmm0, xmm0
mov word [ebp - 0xae], ax
mov ax, word [ebp - 0x78]
mov word [ebp - 0xc0], ax
mov eax, dword [ebp + 0x10]
movlpd qword [ebp - 0xec], xmm0
movlpd qword [ebp - 0xe4], xmm0
movlpd qword [ebp - 0xdc], xmm0
movlpd qword [ebp - 0xd4], xmm0
movlpd qword [ebp - 0xcc], xmm0
movlpd qword [ebp - 0xbe], xmm0
movlpd qword [ebp - 0xb6], xmm0
mov dword [ebp - 0xc4], 1
test eax, eax
je 0x4509c0
cmp word [eax], 0
mov dword [ebp + 0xc], eax
jne 0x4509c7
mov dword [ebp + 0xc], 0
mov edx, dword [ebp - 0xc]
mov ecx, 0x4d3ee8
mov eax, dword [edx + 0x6f8]
test eax, eax
je 0x4509e4
mov eax, dword [eax]
mov esi, ecx
test eax, eax
cmovne esi, eax
jmp 0x4509e9
mov esi, 0x4d3ee8
mov eax, dword [edx + 0x704]
test eax, eax
je 0x4509fe
mov eax, dword [eax]
mov edx, ecx
test eax, eax
cmovne edx, eax
jmp 0x450a03
mov edx, 0x4d3ee8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x6ec]
test eax, eax
je 0x450a19
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
jmp 0x450a1e
mov ecx, 0x4d3ee8
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xf0]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 0x18]
push 0
push 0
push eax
push 0
push 1
push esi
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
jne 0x450ae1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
cmp byte [ebp + 0x27], 0
jne 0x450d06
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x24], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x5c], 0x3c
mov dword [ebp - 0x58], 0x440
mov dword [ebp - 0x44], esi
test ebx, ebx
je 0x450b33
cmp word [ebx], 0
je 0x450b33
push 0x4dac64
push ebx
call fcn.004a44b1
add esp, 8
test eax, eax
jne 0x450b04
mov eax, 6
jmp 0x450b38
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xa8]
push eax
push esi
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x450af9
mov eax, dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x450af1
push eax
call esi
mov eax, dword [ebp - 0x20]
jmp 0x450cb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x450a5e
push 0x4da0bc
push ebx
call fcn.004a44b1
add esp, 8
test eax, eax
jne 0x450b1d
mov eax, 3
jmp 0x450b38
push str.Hide
push ebx
call fcn.004a44b1
add esp, 8
neg eax
sbb eax, eax
neg eax
jmp 0x450b38
mov eax, 1
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x450b5b
push str.properties
push eax
mov dword [ebp - 0x50], eax
call fcn.004a44b1
add esp, 8
test eax, eax
jne 0x450b5b
or dword [ebp - 0x58], 0xc
mov ebx, dword [ebp - 8]
test ebx, ebx
jne 0x450c97
lea eax, [edi*2 + 2]
call fcn.004baba0
mov ecx, dword [ebp + 8]
mov edi, esp
mov edx, edi
sub edx, ecx
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x450b80
cmp word [edi], 0x22
lea esi, [edi + 2]
jne 0x450bd1
push 0x22
push esi
call fcn.004a203f
add esp, 8
test eax, eax
je 0x450bd1
xor ecx, ecx
mov dword [ebp + 8], esi
mov word [eax], cx
movzx ecx, word [eax + 2]
test cx, cx
je 0x450c97
lea ebx, [eax + 2]
cmp ecx, 0x20
jne 0x450c97
add ebx, 2
jmp 0x450c97
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x450bdf
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x20
push esi
call fcn.004a203f
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x450c72
lea esi, [ebx - 2]
cmp esi, edi
jbe 0x450c1c
nop dword [eax + eax]
movzx eax, word [esi]
push eax
push 0x4de740
call fcn.004a203f
add esp, 8
test eax, eax
jne 0x450c1c
sub esi, 2
cmp esi, edi
ja 0x450c00
cmp word [esi], 0x2e
jne 0x450c5e
xor eax, eax
mov word [ebx], ax
mov eax, ebx
sub eax, esi
and eax, 0xfffffffe
cmp eax, 8
jne 0x450c47
mov edx, esi
mov ecx, str..exe.bat.com.cmd.hta
call fcn.00486c20
test eax, eax
jne 0x450cf1
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x450cf1
mov eax, 0x20
mov word [ebx], ax
lea eax, [ebx + 2]
push 0x20
push eax
call fcn.004a203f
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x450bf4
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x10], 0
je 0x450c97
mov eax, dword [0x4ebf24]
mov ecx, 0x4d3ee8
test eax, eax
je 0x450c90
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x48], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x450cfc
mov eax, dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp + 0x20], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
je 0x450cce
mov eax, dword [0x4ea828]
mov dword [eax + 0x38], 0
cmp dword [ebp + 0x1c], 0
jne 0x450cdd
mov eax, dword [ecx]
test eax, eax
je 0x450cdd
push eax
call esi
mov eax, 1
lea esp, [ebp - 0x1600]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov dword [ebp + 8], edi
add ebx, 2
jmp 0x450c75
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
jmp 0x450d09
mov ebx, dword [ebp - 8]
cmp byte [ebp + 0x20], 0
je 0x450d17
mov eax, dword [0x4ea828]
mov dword [eax + 0x38], ecx
cmp byte [ebp + 0x14], 0
je 0x4505a3
push 0
push 0x1ff
lea eax, [ebp - 0x5f0]
push eax
push 0
push ecx
push 0
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x450d62
push eax
push str._nVerb:___s_
lea eax, [ebp - 0x1f0]
push 0x80
push eax
call fcn.004868c0
add esp, 0x10
jmp 0x450d6b
xor eax, eax
mov word [ebp - 0x1f0], ax
test ebx, ebx
mov edi, 0x4d3ee8
cmovne edi, ebx
mov edx, edi
lea ecx, [edx + 2]
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x450d80
mov ebx, dword [ebp + 8]
sub edx, ecx
mov esi, ebx
sar edx, 1
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x450d97
sub esi, ecx
mov ecx, 0x4dac28
sar esi, 1
mov eax, ecx
cmp edx, 0x190
mov edx, 0x4d3ee8
cmovbe eax, edx
cmp esi, 0x190
push eax
push edi
lea eax, [ebp - 0x1f0]
cmovbe ecx, edx
cmp byte [ebp + 0x27], 0
push eax
push ecx
push ebx
mov ecx, str.Failed_attempt_to_launch_program_or_document:
mov eax, str.Launch_Error__possibly_related_to_RunAs_:
cmove eax, ecx
push eax
push str._s_nAction:____0.400s_s__s_nParams:____0.400s_s_
lea eax, [ebp - 0x15f0]
push 0x800
push eax
call fcn.004868c0
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x5f0]
add esp, 0x24
push 0
push 0
push 9
push eax
lea eax, [ebp - 0x15f0]
push eax
call fcn.0040cc20
lea esp, [ebp - 0x1600]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20