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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x15b8
call fcn.0049a220
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x28]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, edx
xor edx, edx
cmp eax, edx
jne 0x431247
lea eax, [ebp - 0x30]
mov dword [ebp - 0x18], eax
mov dword [eax], edx
cmp ecx, edx
je 0x431257
call fcn.004130e0
xor edx, edx
cmp edi, edx
je 0x431626
cmp word [edi], dx
je 0x431626
cmp ebx, edx
je 0x431274
cmp word [ebx], dx
jne 0x431274
mov dword [ebp + 0x10], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edx
cmp esi, edx
je 0x431300
push str.find
push edi
call fcn.0048ea29
add esp, 8
test eax, eax
je 0x4312f5
push str.explore
push edi
call fcn.0048ea29
add esp, 8
test eax, eax
je 0x4312f5
push str.open
push edi
call fcn.0048ea29
add esp, 8
test eax, eax
je 0x4312f5
push str.edit
push edi
call fcn.0048ea29
add esp, 8
test eax, eax
je 0x4312f5
push 0x4aa3b8
push edi
call fcn.0048ea29
add esp, 8
test eax, eax
je 0x4312f5
push str.properties
push edi
call fcn.0048ea29
add esp, 8
test eax, eax
je 0x4312f5
mov dword [ebp - 0xc], esi
jmp 0x4313bd
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], esi
jmp 0x4313bd
mov ebx, 0x4a552c
mov eax, edi
call fcn.004095d0
test eax, eax
je 0x4313bd
sub eax, edi
sar eax, 1
lea ebx, [eax + eax]
lea eax, [ebx + 2]
call fcn.00496000
mov eax, esp
push ebx
push edi
push eax
call fcn.00496db0
mov esi, eax
xor eax, eax
add esp, 0xc
mov word [ebx + esi], ax
cmp word [esi], 0x2a
jne 0x431343
add esi, 2
jmp 0x4313af
push str.find
push esi
call fcn.0048ea29
add esp, 8
test eax, eax
je 0x4313af
push str.explore
push esi
call fcn.0048ea29
add esp, 8
test eax, eax
je 0x4313af
push str.open
push esi
call fcn.0048ea29
add esp, 8
test eax, eax
je 0x4313af
push str.edit
push esi
call fcn.0048ea29
add esp, 8
test eax, eax
je 0x4313af
push 0x4aa3b8
push esi
call fcn.0048ea29
add esp, 8
test eax, eax
je 0x4313af
push str.properties
push esi
call fcn.0048ea29
add esp, 8
test eax, eax
jne 0x4313bd
mov dword [ebp - 0x14], esi
test esi, esi
je 0x4313bd
lea ecx, [ebx + edi + 2]
mov dword [ebp - 0x10], ecx
xor edx, edx
push 0x3fe
push edx
lea eax, [ebp - 0x5b2]
push eax
mov byte [ebp - 5], 0
mov word [ebp - 0x5b4], dx
call fcn.00497900
mov esi, dword [ebp + 8]
add esp, 0xc
cmp byte [ebp + 0x24], 0
je 0x431449
mov eax, dword [esi + 0xaec]
test eax, eax
je 0x4313f8
cmp dword [eax + 8], 0
jne 0x431417
mov eax, dword [esi + 0xaf8]
test eax, eax
je 0x431408
cmp dword [eax + 8], 0
jne 0x431417
lea eax, [esi + 0xb00]
call fcn.00431980
test al, al
jne 0x431449
cmp dword [ebp - 0x14], 0
mov byte [ebp + 0x27], 1
je 0x43144d
cmp byte [ebp + 0x14], 0
je 0x431438
push 0x4acd84
push str.System_verbs_unsupported_with_RunAs.
mov ecx, esi
call fcn.00430710
xor eax, eax
lea esp, [ebp - 0x15c4]
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 + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431453
sub eax, edx
sar eax, 1
mov dword [ebp - 0x1c], eax
cmp eax, 0x4001
jb 0x431493
cmp byte [ebp + 0x14], cl
je 0x431482
push 0x4acd84
push str.String_too_long.
mov ecx, esi
call fcn.00430710
xor eax, eax
lea esp, [ebp - 0x15c4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
cmp dword [ebp - 0x14], 0
jne 0x431698
push 0x40
lea ecx, [ebp - 0xb0]
push 0
push ecx
call fcn.00497900
mov eax, dword [ebp + 0x18]
add esp, 0xc
mov dword [ebp - 0xb4], 0x44
mov dword [ebp - 0x88], 1
test eax, eax
je 0x4314e1
cmp word [eax], 0
je 0x4314e1
mov esi, eax
call fcn.004149a0
mov word [ebp - 0x84], ax
jmp 0x4314ed
mov edx, 1
mov word [ebp - 0x84], dx
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
test ebx, ebx
je 0x43153f
cmp word [ebx], ax
je 0x43153f
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431510
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x1c]
lea eax, [eax + eax + 0x14]
call fcn.00496000
mov esi, esp
push ebx
push edi
push str._s__s
push esi
call fcn.0048ee33
add esp, 0x10
jmp 0x431562
mov eax, dword [ebp - 0x1c]
lea eax, [eax + eax + 2]
call fcn.00496000
mov esi, esp
mov edx, esi
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x431553
cmp byte [ebp + 0x27], 0
je 0x4315b1
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x5b4]
push edx
push eax
mov eax, dword [ebp + 0x28]
lea ecx, [ebp - 5]
push ecx
mov ecx, dword [ebp - 0x84]
lea edx, [ebp - 0x2c]
push edx
mov edx, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 8]
push ecx
mov cl, byte [ebp + 0x14]
push edx
mov edx, dword [ebp + 0x10]
push esi
push eax
call fcn.00452d40
test eax, eax
jne 0x43168e
lea esp, [ebp - 0x15c4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0xb4]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x43163a
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4315e5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
mov dword [edx], ecx
test eax, eax
je 0x4315fd
push eax
mov eax, dword [ebp - 0x24]
call fcn.00401200
cmp byte [ebp + 0x20], 0
je 0x431610
mov ecx, dword [0x4c440c]
mov dword [ecx + 0x30], 0
cmp dword [ebp + 0x1c], 0
jne 0x431626
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
test eax, eax
je 0x431626
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
lea esp, [ebp - 0x15c4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov eax, dword [ebp + 0x20]
push eax
mov eax, 0x200
lea esi, [ebp - 0x5b4]
call fcn.004767a0
add esp, 4
push 0x38
lea edx, [ebp - 0x68]
push 0
push edx
call fcn.00497900
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x18]
add esp, 0xc
mov dword [ebp - 0x6c], 0x3c
mov dword [ebp - 0x68], 0x440
test eax, eax
je 0x4316c9
cmp word [eax], 0
je 0x4316c9
mov esi, eax
call fcn.004149a0
mov dword [ebp - 0x50], eax
jmp 0x4316d0
cmp byte [ebp - 5], 0
jne 0x4315fd
cmp byte [ebp + 0x27], 0
je 0x431651
cmp byte [ebp + 0x14], 0
je 0x4316b8
lea ecx, [ebp - 0x5b4]
push ecx
mov ecx, dword [ebp + 8]
push str.Launch_Error__possibly_related_to_RunAs_.
call fcn.00430710
xor eax, eax
lea esp, [ebp - 0x15c4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov dword [ebp - 0x50], 1
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4316f0
push str.properties
push eax
mov dword [ebp - 0x60], eax
call fcn.0048ea29
add esp, 8
test eax, eax
jne 0x4316f0
or dword [ebp - 0x68], 0xc
cmp dword [ebp - 0xc], 0
jne 0x431816
mov eax, dword [ebp - 0x1c]
lea eax, [eax + eax + 2]
call fcn.00496000
mov eax, dword [ebp - 0x10]
mov edi, esp
mov edx, edi
sub edx, eax
nop
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x431710
cmp word [edi], 0x22
jne 0x431761
lea esi, [edi + 2]
push 0x22
push esi
call fcn.0048f801
add esp, 8
test eax, eax
je 0x431761
xor ecx, ecx
mov word [eax], cx
add eax, 2
mov dword [ebp - 0x10], esi
cmp word [eax], cx
je 0x431816
cmp word [eax], 0x20
mov dword [ebp - 0xc], eax
jne 0x431816
add dword [ebp - 0xc], 2
jmp 0x431816
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x43176f
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea edx, [edi + 2]
push 0x20
push edx
call fcn.0048f801
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x431805
lea esi, [ebx - 2]
cmp esi, edi
jbe 0x4317ac
mov edi, edi
movzx eax, word [esi]
push eax
push 0x4aa4b4
call fcn.0048f801
add esp, 8
test eax, eax
jne 0x4317ac
sub esi, 2
cmp esi, edi
ja 0x431790
cmp word [esi], 0x2e
jne 0x4317e6
mov edx, ebx
sub edx, esi
xor ecx, ecx
and edx, 0xfffffffe
mov word [ebx], cx
cmp edx, 8
jne 0x4317d3
mov eax, esi
mov ecx, str..exe.bat.com.cmd.hta
call fcn.00475a70
test eax, eax
jne 0x4317fc
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x4317fc
mov eax, 0x20
mov word [ebx], ax
push 0x20
add ebx, 2
push ebx
call fcn.0048f801
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x431787
jmp 0x431805
add ebx, 2
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], ebx
cmp dword [ebp + 0x10], 0
je 0x431816
push 0x4c87b8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x431891
test byte [0x4cb70c], 1
jne 0x43185e
or dword [0x4cb70c], 1
push str.GetProcessId
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cb708], eax
jmp 0x431863
mov eax, dword [0x4cb708]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x18]
mov dword [edx], ecx
test ecx, ecx
je 0x4315fd
cmp dword [ebp + 0x28], 0
je 0x4315fd
test eax, eax
je 0x4315fd
push ecx
call eax
mov ecx, dword [ebp + 0x28]
push ecx
jmp 0x4315f8
mov edx, dword [ebp + 0x20]
push edx
mov eax, 0x200
lea esi, [ebp - 0x5b4]
call fcn.004767a0
add esp, 4
cmp byte [ebp + 0x14], 0
je 0x43196b
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4318d4
push eax
push str._nVerb:___s_
mov esi, 0x80
lea edi, [ebp - 0x1b4]
call fcn.004756c0
add esp, 8
jmp 0x4318dd
xor eax, eax
mov word [ebp - 0x1b4], ax
cmp dword [ebp - 0xc], 0
mov esi, 0x4acd84
jne 0x4318eb
mov dword [ebp - 0xc], esi
mov ebx, dword [ebp - 0xc]
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4318f3
sub eax, edx
sar eax, 1
cmp eax, 0x190
jbe 0x43190e
mov esi, 0x4a5a2c
mov edi, dword [ebp - 0x10]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431916
sub eax, edx
sar eax, 1
cmp eax, 0x190
mov eax, 0x4a5a2c
ja 0x431936
mov eax, 0x4acd84
push esi
push ebx
lea ecx, [ebp - 0x1b4]
push ecx
push eax
push edi
push str.Failed_attempt_to_launch_program_or_document:_nAction:____0.400s_s__s_nParams:____0.400s_s_
mov esi, 0x800
lea edi, [ebp - 0x15b4]
call fcn.004756c0
mov ecx, dword [ebp + 8]
add esp, 0x18
lea edx, [ebp - 0x5b4]
push edx
mov eax, edi
push eax
call fcn.00430710
xor eax, eax
lea esp, [ebp - 0x15c4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24