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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x28]
sub esp, 0xaf8
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, edx
xor edx, edx
push edi
mov edi, dword [ebp + 0xc]
cmp eax, edx
jne 0x42ec73
lea eax, [ebp - 0x34]
mov dword [ebp - 0x18], eax
mov dword [eax], edx
cmp ecx, edx
je 0x42ec83
call fcn.004135e0
xor edx, edx
cmp ebx, edx
je 0x42f017
cmp byte [ebx], 0
je 0x42f017
cmp esi, edx
je 0x42eca0
cmp byte [esi], 0
jne 0x42eca0
mov dword [ebp + 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edx
cmp edi, edx
je 0x42ed2c
push str.find
push ebx
call fcn.00485de1
add esp, 8
test eax, eax
je 0x42ed21
push str.explore
push ebx
call fcn.00485de1
add esp, 8
test eax, eax
je 0x42ed21
push str.open
push ebx
call fcn.00485de1
add esp, 8
test eax, eax
je 0x42ed21
push str.edit
push ebx
call fcn.00485de1
add esp, 8
test eax, eax
je 0x42ed21
push 0x49dcc0
push ebx
call fcn.00485de1
add esp, 8
test eax, eax
je 0x42ed21
push str.properties
push ebx
call fcn.00485de1
add esp, 8
test eax, eax
je 0x42ed21
mov dword [ebp - 0x14], edi
jmp 0x42ede1
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
jmp 0x42ede1
mov edi, 0x49b110
mov eax, ebx
call fcn.004095a0
test eax, eax
je 0x42ede1
sub eax, ebx
mov esi, eax
lea eax, [esi + 1]
call fcn.0048f810
mov eax, esp
push esi
push ebx
push eax
call fcn.0048e6e0
mov edi, eax
add esp, 0xc
mov byte [edi + esi], 0
cmp byte [edi], 0x2a
jne 0x42ed67
inc edi
jmp 0x42edd3
push str.find
push edi
call fcn.00485de1
add esp, 8
test eax, eax
je 0x42edd3
push str.explore
push edi
call fcn.00485de1
add esp, 8
test eax, eax
je 0x42edd3
push str.open
push edi
call fcn.00485de1
add esp, 8
test eax, eax
je 0x42edd3
push str.edit
push edi
call fcn.00485de1
add esp, 8
test eax, eax
je 0x42edd3
push 0x49dcc0
push edi
call fcn.00485de1
add esp, 8
test eax, eax
je 0x42edd3
push str.properties
push edi
call fcn.00485de1
add esp, 8
test eax, eax
jne 0x42ede1
mov dword [ebp - 0xc], edi
test edi, edi
je 0x42ede1
lea eax, [esi + ebx + 1]
mov dword [ebp - 0x10], eax
xor esi, esi
cmp byte [ebp + 0x24], 0
mov byte [ebp - 5], 0
mov dword [ebp - 0x20], esi
je 0x42ee53
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x624]
test eax, eax
je 0x42ee02
cmp dword [eax + 8], esi
jne 0x42ee21
mov eax, dword [ecx + 0x630]
test eax, eax
je 0x42ee11
cmp dword [eax + 8], esi
jne 0x42ee21
mov eax, ecx
add eax, 0x638
call fcn.0042f340
test al, al
jne 0x42ee53
mov byte [ebp + 0x27], 1
cmp dword [ebp - 0xc], esi
je 0x42ee57
cmp byte [ebp + 0x14], 0
je 0x42ee42
mov ecx, dword [ebp + 8]
push 0x499821
push str.System_verbs_unsupported_with_RunAs.
call fcn.0042e0b0
xor eax, eax
lea esp, [ebp - 0xb04]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov byte [ebp + 0x27], 0
mov eax, dword [ebp - 0x10]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42ee60
sub eax, edx
mov dword [ebp - 0x1c], eax
cmp eax, 0x4001
jb 0x42ee9b
cmp byte [ebp + 0x14], cl
je 0x42ee8a
mov ecx, dword [ebp + 8]
push 0x499821
push str.String_too_long.
call fcn.0042e0b0
xor eax, eax
lea esp, [ebp - 0xb04]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
cmp dword [ebp - 0xc], esi
jne 0x42f03c
push 0x40
lea ecx, [ebp - 0xb8]
push 0
push ecx
call fcn.0048f2b0
mov esi, dword [ebp + 0x18]
add esp, 0xc
mov dword [ebp - 0xbc], 0x44
mov dword [ebp - 0x90], 1
test esi, esi
je 0x42eee5
cmp byte [esi], 0
je 0x42eee5
call fcn.00414dc0
mov word [ebp - 0x8c], ax
jmp 0x42eef1
mov edx, 1
mov word [ebp - 0x8c], dx
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], 0
test eax, eax
je 0x42ef3e
cmp byte [eax], 0
je 0x42ef3e
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42ef12
mov ecx, dword [ebp - 0x1c]
sub eax, edx
lea eax, [eax + ecx + 0xa]
call fcn.0048f810
mov edx, dword [ebp + 0xc]
mov edi, esp
push edx
push ebx
push str._s__s
push edi
call fcn.00486318
add esp, 0x10
jmp 0x42ef5a
mov eax, dword [ebp - 0x1c]
inc eax
call fcn.0048f810
mov edi, esp
mov edx, edi
mov eax, ebx
sub edx, ebx
nop
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x42ef50
cmp byte [ebp + 0x27], 0
je 0x42efa2
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x20]
push eax
push ecx
mov ecx, dword [ebp + 0x28]
lea edx, [ebp - 5]
push edx
mov edx, dword [ebp - 0x8c]
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp + 8]
push ecx
mov cl, byte [ebp + 0x14]
push edx
mov edx, dword [ebp + 0x10]
push edi
push eax
call fcn.0044f310
test eax, eax
jne 0x42f033
lea esp, [ebp - 0xb04]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0xbc]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x42f02b
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x42efd6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x18]
mov dword [edx], ecx
test eax, eax
je 0x42efee
push eax
mov eax, dword [ebp - 0x28]
call fcn.004011f0
cmp byte [ebp + 0x20], 0
je 0x42f001
mov edx, dword [0x4a78d4]
mov dword [edx + 0x30], 0
cmp dword [ebp + 0x1c], 0
jne 0x42f017
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
test eax, eax
je 0x42f017
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
lea esp, [ebp - 0xb04]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x42f046
cmp byte [ebp - 5], 0
jne 0x42efee
mov esi, dword [ebp - 0x20]
cmp byte [ebp + 0x27], 0
jne 0x42f231
push 0x38
lea eax, [ebp - 0x6c]
push 0
push eax
call fcn.0048f2b0
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0x70], 0x3c
mov dword [ebp - 0x6c], 0x440
mov dword [ebp - 0x58], ecx
test eax, eax
je 0x42f082
cmp byte [eax], 0
je 0x42f082
mov esi, eax
call fcn.00414dc0
mov dword [ebp - 0x54], eax
jmp 0x42f089
mov dword [ebp - 0x54], 1
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x42f0a9
push str.properties
push eax
mov dword [ebp - 0x64], eax
call fcn.00485de1
add esp, 8
test eax, eax
jne 0x42f0a9
or dword [ebp - 0x6c], 0xc
cmp dword [ebp - 0x14], 0
jne 0x42f1ae
mov eax, dword [ebp - 0x1c]
inc eax
call fcn.0048f810
mov eax, dword [ebp - 0x10]
mov ebx, esp
mov edx, ebx
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x42f0c5
cmp byte [ebx], 0x22
jne 0x42f10b
lea esi, [ebx + 1]
push 0x22
push esi
call fcn.00486dd1
add esp, 8
test eax, eax
je 0x42f10b
mov byte [eax], 0
inc eax
cmp byte [eax], 0
mov dword [ebp - 0x10], esi
je 0x42f1ae
cmp byte [eax], 0x20
mov dword [ebp - 0x14], eax
jne 0x42f1ae
inc eax
mov dword [ebp - 0x14], eax
jmp 0x42f1ae
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x42f119
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea edx, [ebx + 1]
push 0x20
push edx
call fcn.00486dd1
mov edi, eax
add esp, 8
test edi, edi
je 0x42f19d
lea ecx, [ecx]
lea esi, [edi - 1]
cmp esi, ebx
jbe 0x42f151
movsx eax, byte [esi]
push eax
push 0x49dd18
call fcn.00486dd1
add esp, 8
test eax, eax
jne 0x42f151
dec esi
cmp esi, ebx
ja 0x42f137
cmp byte [esi], 0x2e
jne 0x42f182
mov eax, edi
sub eax, esi
mov byte [edi], 0
cmp eax, 4
jne 0x42f174
push esi
mov eax, str..exe.bat.com.cmd.hta
call fcn.00473260
add esp, 4
test eax, eax
jne 0x42f196
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x42f196
mov byte [edi], 0x20
push 0x20
inc edi
push edi
call fcn.00486dd1
mov edi, eax
add esp, 8
test edi, edi
jne 0x42f130
jmp 0x42f19d
inc edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edi
cmp dword [ebp + 0x10], 0
je 0x42f1ae
push 0x4aba78
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x42f229
test byte [0x4ae528], 1
jne 0x42f1f6
or dword [0x4ae528], 1
push str.GetProcessId
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4ae524], eax
jmp 0x42f1fb
mov eax, dword [0x4ae524]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x18]
mov dword [edx], ecx
test ecx, ecx
je 0x42efee
cmp dword [ebp + 0x28], 0
je 0x42efee
test eax, eax
je 0x42efee
push ecx
call eax
mov ecx, dword [ebp + 0x28]
push ecx
jmp 0x42efe9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp byte [ebp + 0x20], 0
je 0x42f240
mov edx, dword [0x4a78d4]
mov dword [edx + 0x30], esi
cmp byte [ebp + 0x14], 0
je 0x42f326
push 0
push 0x1ff
lea eax, [ebp - 0x2f4]
push eax
push 0
push esi
push 0
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
cmp dword [ebp - 0xc], 0
je 0x42f28c
mov ecx, dword [ebp - 0xc]
push ecx
push str._nVerb:___s_
mov esi, 0x80
lea edi, [ebp - 0xf4]
call fcn.00472ee0
add esp, 8
jmp 0x42f293
mov byte [ebp - 0xf4], 0
mov ebx, dword [ebp - 0x14]
test ebx, ebx
jne 0x42f29f
mov ebx, 0x499821
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42f2a4
sub eax, edx
mov edi, 0x49bc0c
cmp eax, 0x190
ja 0x42f2be
mov edi, 0x499821
mov esi, dword [ebp - 0x10]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42f2c6
sub eax, edx
mov ecx, 0x49bc0c
cmp eax, 0x190
ja 0x42f2e0
mov ecx, 0x499821
cmp byte [ebp + 0x27], 0
mov eax, str.Launch_Error__possibly_related_to_RunAs_:
jne 0x42f2f0
mov eax, str.Failed_attempt_to_launch_program_or_document:
push edi
push ebx
lea edx, [ebp - 0xf4]
push edx
push ecx
push esi
push eax
push str._s_nAction:____0.400s_s__s_nParams:____0.400s_s_
mov esi, 0x800
lea edi, [ebp - 0xaf4]
call fcn.00472ee0
add esp, 0x1c
lea eax, [ebp - 0x2f4]
push eax
mov ecx, edi
push ecx
mov ecx, dword [ebp + 8]
call fcn.0042e0b0
xor eax, eax
lea esp, [ebp - 0xb04]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24