Function at 0x451060
Capabilities:
Create process on windows
Get file attributes
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x1510]
mov eax, 0x158c
call fcn.004ebaf0
mov eax, dword [0x526b24]
xor eax, ebp
mov dword [ebp + 0x150c], eax
mov eax, dword [ebp + 0x1528]
lea edx, [ebp - 0x7c]
push ebx
mov ebx, dword [ebp + 0x152c]
test ebx, ebx
push esi
mov esi, dword [ebp + 0x151c]
cmovne edx, ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x1538]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x1520]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], edx
mov dword [edx], 0
push edi
mov edi, dword [ebp + 0x1518]
test eax, eax
je 0x4510dd
push 0
push 0xffffffffffffffff
push 0
mov ecx, eax
call fcn.004e6f40
mov ecx, dword [ebp - 8]
test edi, edi
je 0x451788
movzx eax, word [edi]
test ax, ax
je 0x451788
test ecx, ecx
je 0x451100
xor edx, edx
cmp word [ecx], dx
cmove ecx, edx
mov dword [ebp - 8], ecx
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov dword [ebp], 0
mov dword [ebp + 4], edi
mov dword [ebp - 4], 0
test esi, esi
je 0x45122a
push str.find
push edi
call ebx
add esp, 8
test eax, eax
je 0x45121d
push str.explore
push edi
call ebx
add esp, 8
test eax, eax
je 0x45121d
push str.open
push edi
call ebx
add esp, 8
test eax, eax
je 0x45121d
push str.Edit
push edi
call ebx
add esp, 8
test eax, eax
je 0x45121d
push 0x5027e8
push edi
call ebx
add esp, 8
test eax, eax
je 0x45121d
push str.properties
push edi
call ebx
add esp, 8
test eax, eax
je 0x45121d
mov dword [ebp - 4], esi
mov ebx, edi
cmp byte [ebp + 0x1534], 0
mov byte [ebp + 0xb], 0
mov dword [ebp - 0x10], 0
je 0x451327
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x6f8]
test eax, eax
je 0x4511c1
cmp dword [eax + 8], 0
jne 0x4511e7
mov eax, dword [ecx + 0x704]
test eax, eax
je 0x4511d1
cmp dword [eax + 8], 0
jne 0x4511e7
add ecx, 0x70c
call fcn.00461e10
test al, al
jne 0x451327
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp]
mov byte [ebp + 0xa], 1
test edx, edx
je 0x45132e
cmp byte [ebp + 0x1524], 0
je 0x451482
push 0
push 0
push 9
push 0x4f5b70
push str.System_verbs_unsupported_with_RunAs.
call fcn.0046ce10
jmp 0x45178d
mov ebx, esi
mov dword [ebp], edi
mov dword [ebp + 4], ebx
jmp 0x451196
mov ebx, edi
mov esi, eax
nop
mov ecx, 0x4f94c4
mov edx, 0x20
nop word [eax + eax]
cmp si, dx
je 0x451266
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x451240
movzx eax, word [ebx + 2]
add ebx, 2
mov esi, eax
test ax, ax
jne 0x451230
jmp 0x451194
sub ebx, edi
sar ebx, 1
add ebx, ebx
lea eax, [ebx + 2]
call fcn.004ec520
mov eax, esp
push ebx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov esi, eax
add esp, 0xc
xor eax, eax
mov word [ebx + esi], ax
cmp word [esi], 0x2a
jne 0x451297
lea eax, [esi + 2]
mov dword [ebp], eax
jmp 0x451312
push str.find
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x45130d
push str.explore
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x45130d
push str.open
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x45130d
push str.Edit
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x45130d
push 0x5027e8
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x45130d
push str.properties
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x451194
mov eax, esi
mov dword [ebp], esi
test eax, eax
je 0x451194
add ebx, 2
add ebx, edi
mov dword [ebp + 4], ebx
jmp 0x451196
mov edx, dword [ebp]
mov byte [ebp + 0xa], 0
mov esi, ebx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x451333
sub esi, ecx
sar esi, 1
cmp esi, 0x4001
jb 0x451373
cmp byte [ebp + 0x1524], al
je 0x451482
mov ecx, dword [ebp - 0x14]
push 0
push 0
push 9
push 0x4f5b70
push str.String_too_long.
call fcn.0046ce10
jmp 0x45178d
test edx, edx
jne 0x4514f6
xorps xmm0, xmm0
mov dword [ebp - 0x68], 0x44
xor eax, eax
movlpd qword [ebp - 0x64], xmm0
mov word [ebp - 0x26], ax
mov eax, dword [ebp - 0x20]
movlpd qword [ebp - 0x5c], xmm0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x36], xmm0
movlpd qword [ebp - 0x2e], xmm0
mov dword [ebp - 0x3c], 1
test eax, eax
je 0x4513cc
cmp word [eax], dx
je 0x4513cc
push eax
call fcn.004538b0
add esp, 4
jmp 0x4513d1
mov eax, 1
mov word [ebp - 0x38], ax
xorps xmm0, xmm0
mov eax, dword [ebp - 0x1c]
movups xmmword [ebp - 0x78], xmm0
test eax, eax
je 0x451424
cmp word [eax], 0
je 0x451424
mov ecx, eax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4513f0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + esi]
lea eax, [eax*2 + 0x14]
call fcn.004ec520
mov ebx, esp
push dword [ebp - 0x1c]
push edi
push str.__s___s
push ebx
call fcn.0043c2f0
add esp, 0x10
jmp 0x451450
lea eax, [esi*2 + 2]
call fcn.004ec520
mov ebx, esp
mov ecx, ebx
sub ecx, edi
nop word [eax + eax]
movzx eax, word [edi]
lea edi, [edi + 2]
mov word [edi + ecx - 2], ax
test ax, ax
jne 0x451440
cmp byte [ebp + 0xa], 0
je 0x451489
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push eax
push ecx
mov ecx, dword [ebp - 0x14]
lea eax, [ebp + 0xb]
push eax
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x38]
push dword [ebp + 0x1524]
push dword [ebp - 8]
push ebx
call fcn.004a77c0
test eax, eax
jne 0x4514e5
xor eax, eax
jmp 0x45178d
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 8]
push 0
push 0
push 0
push 0
push 0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4514dc
mov eax, dword [ebp - 0x74]
mov byte [ebp + 0xb], 1
test eax, eax
je 0x4514bd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x78]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4514e5
push 0x11
push 0
push dword [ebp - 0x70]
mov ecx, eax
call fcn.004e6de0
jmp 0x4514e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp byte [ebp + 0xb], 0
je 0x4514f6
mov esi, dword [0x62271c]
jmp 0x45173a
cmp byte [ebp + 0xa], 0
jne 0x4517ad
mov eax, dword [ebp - 0x20]
xorps xmm0, xmm0
mov ebx, dword [ebp - 8]
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x60], 0x3c
mov dword [ebp - 0x5c], 0x440
mov dword [ebp - 0x48], ebx
test eax, eax
je 0x45154d
cmp word [eax], 0
je 0x45154d
push eax
call fcn.004538b0
add esp, 4
mov dword [ebp - 0x44], eax
jmp 0x451554
mov dword [ebp - 0x44], 1
mov eax, dword [ebp]
test eax, eax
je 0x451575
push str.properties
push eax
mov dword [ebp - 0x54], eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x451575
or dword [ebp - 0x5c], 0xc
cmp dword [ebp - 4], 0
jne 0x4515de
lea eax, [esi*2 + 2]
call fcn.004ec520
mov ecx, dword [ebp + 4]
mov edi, esp
mov edx, edi
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ecx + edx - 2], ax
test ax, ax
jne 0x451590
cmp word [edi], 0x22
lea esi, [edi + 2]
jne 0x451631
push 0x22
push esi
call sub.VCRUNTIME140.dll_wcschr
add esp, 8
test eax, eax
je 0x451631
xor ecx, ecx
mov dword [ebp + 4], esi
mov word [eax], cx
movzx ecx, word [eax + 2]
test cx, cx
je 0x4515de
lea esi, [eax + 2]
mov dword [ebp - 4], esi
cmp ecx, 0x20
jne 0x4515de
add esi, 2
mov dword [ebp - 4], esi
mov esi, dword [0x62271c]
mov eax, dword [ebp + 4]
mov ebx, dword [ebp - 4]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x4c], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x45172b
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x28]
mov dword [edi], eax
test eax, eax
je 0x451628
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x451628
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push 0x11
push 0
push eax
mov ecx, ebx
call fcn.004e6de0
mov byte [ebp + 0xb], 1
jmp 0x45173d
test ebx, ebx
je 0x45163c
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x20
push esi
call sub.VCRUNTIME140.dll_wcschr
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4516d7
lea esi, [ebx - 2]
cmp esi, edi
jbe 0x45167c
nop dword [eax + eax]
movzx eax, word [esi]
push eax
push 0x502890
call sub.VCRUNTIME140.dll_wcschr
add esp, 8
test eax, eax
jne 0x45167c
sub esi, 2
cmp esi, edi
ja 0x451660
cmp word [esi], 0x2e
jne 0x4516b8
xor eax, eax
mov word [ebx], ax
mov eax, ebx
sub eax, esi
and eax, 0xfffffffe
cmp eax, 8
jne 0x4516a5
push esi
push str..exe.bat.com.cmd.hta
call fcn.004e6500
add esp, 8
test eax, eax
jne 0x4516ce
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x4516ce
mov eax, 0x20
mov word [ebx], ax
lea eax, [ebx + 2]
push 0x20
push eax
call sub.VCRUNTIME140.dll_wcschr
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x451651
jmp 0x4516d7
add ebx, 2
mov dword [ebp + 4], edi
mov dword [ebp - 4], ebx
cmp dword [ebp - 8], 0
je 0x4515de
mov ecx, dword fs:[0x2c]
mov esi, dword [0x62271c]
mov eax, dword [ecx + esi*4]
cmp byte [eax + 0x2198], 0
jne 0x451706
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + esi*4]
mov ecx, 0x4f6190
mov eax, dword [eax + 0x6a0]
test eax, eax
je 0x45171f
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jmp 0x4515e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp + 0xb], 0
mov dword [ebp - 0x10], eax
je 0x4517ad
mov edi, dword [ebp - 0xc]
cmp byte [ebp + 0x1530], 0
je 0x451775
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + esi*4]
cmp byte [eax + 0x2198], 0
jne 0x451765
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + esi*4]
mov eax, dword [eax + 0x29c]
mov dword [eax + 0x3c], 0
cmp dword [ebp - 0x24], 0
jne 0x451788
mov eax, dword [edi]
test eax, eax
je 0x451788
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
lea esp, [ebp - 0x88]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x150c]
xor ecx, ebp
call fcn.004ebadf
lea esp, [ebp + 0x1510]
pop ebp
ret 0x24
cmp byte [ebp + 0x1530], 0
je 0x4517ea
mov ecx, dword fs:[0x2c]
mov ebx, dword [0x62271c]
mov esi, dword [ebp - 0x10]
mov eax, dword [ecx + ebx*4]
cmp byte [eax + 0x2198], 0
jne 0x4517de
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + ebx*4]
mov eax, dword [eax + 0x29c]
mov dword [eax + 0x3c], esi
cmp byte [ebp + 0x1524], 0
je 0x451482
push dword [ebp - 0x10]
lea eax, [ebp + 0x100c]
push 0x200
push eax
call fcn.004e4060
mov eax, dword [ebp]
add esp, 0xc
test eax, eax
je 0x451831
push eax
push str._nVerb:___s_
lea eax, [ebp + 0x140c]
push 0x80
push eax
call fcn.004e6440
add esp, 0x10
jmp 0x45183a
xor eax, eax
mov word [ebp + 0x140c], ax
mov eax, dword [ebp - 4]
mov edi, 0x4f5b70
test eax, eax
cmovne edi, eax
mov edx, edi
lea ecx, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x451850
mov ebx, dword [ebp + 4]
sub edx, ecx
mov esi, ebx
sar edx, 1
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x451867
sub esi, ecx
mov ecx, 0x4feb58
sar esi, 1
mov eax, ecx
cmp edx, 0x190
mov edx, 0x4f5b70
cmovbe eax, edx
cmp esi, 0x190
push eax
push edi
lea eax, [ebp + 0x140c]
cmovbe ecx, edx
cmp byte [ebp + 0xa], 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 + 0xc]
push 0x800
push eax
call fcn.004e6440
mov ecx, dword [ebp - 0x14]
lea eax, [ebp + 0x100c]
add esp, 0x24
push 0
push 0
push 9
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.0046ce10
jmp 0x45178d