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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc2de
mov eax, dword fs:[0]
push eax
mov eax, 0x15b8
mov dword fs:[0], esp
call fcn.004d5830
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
push edi
mov edi, ecx
cmp eax, esi
jne 0x42ec86
lea eax, [ebp - 0x3c]
mov ecx, eax
mov dword [ecx], esi
mov ecx, dword [ebp + 0x28]
mov dword [ebp - 0x20], eax
cmp ecx, esi
je 0x42ec99
call fcn.0041acb0
cmp edi, esi
je 0x42f0cb
cmp word [edi], si
je 0x42f0cb
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x42ecb9
cmp word [eax], si
jne 0x42ecb9
mov dword [ebp + 0x10], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], esi
cmp ebx, esi
je 0x42ed64
push str.find
push edi
call fcn.004c9bad
add esp, 8
test eax, eax
je 0x42ed59
push str.50__
call fcn.004a4b10
add esp, 4
push eax
push edi
call fcn.004c9bad
add esp, 8
test eax, eax
je 0x42ed59
push str.open
push edi
call fcn.004c9bad
add esp, 8
test eax, eax
je 0x42ed59
push str.edit
push edi
call fcn.004c9bad
add esp, 8
test eax, eax
je 0x42ed59
push str._:8__
call fcn.004a4b10
add esp, 4
push eax
push edi
call fcn.004c9bad
add esp, 8
test eax, eax
je 0x42ed59
push str._:_7_9__
call fcn.004a4b10
add esp, 4
push eax
push edi
call fcn.004c9bad
add esp, 8
test eax, eax
je 0x42ed59
mov dword [ebp - 0x10], ebx
jmp 0x42ee3f
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
jmp 0x42ee3f
mov ebx, 0x4ebd9c
mov eax, edi
call fcn.00409d30
test eax, eax
je 0x42ee3f
sub eax, edi
sar eax, 1
lea ebx, [eax + eax]
lea eax, [ebx + 2]
call fcn.004d1650
mov eax, esp
push ebx
push edi
push eax
call fcn.004d23c0
mov esi, eax
xor edx, edx
add esp, 0xc
mov word [ebx + esi], dx
cmp word [esi], 0x2a
jne 0x42edaa
add esi, 2
jmp 0x42ee31
push str.find
push esi
call fcn.004c9bad
add esp, 8
test eax, eax
je 0x42ee31
push str.50__
call fcn.004a4b10
add esp, 4
push eax
push esi
call fcn.004c9bad
add esp, 8
test eax, eax
je 0x42ee31
push str.open
push esi
call fcn.004c9bad
add esp, 8
test eax, eax
je 0x42ee31
push str.edit
push esi
call fcn.004c9bad
add esp, 8
test eax, eax
je 0x42ee31
push str._:8__
call fcn.004a4b10
add esp, 4
push eax
push esi
call fcn.004c9bad
add esp, 8
test eax, eax
je 0x42ee31
push str._:_7_9__
call fcn.004a4b10
add esp, 4
push eax
push esi
call fcn.004c9bad
add esp, 8
test eax, eax
jne 0x42ee3f
mov dword [ebp - 0x18], esi
test esi, esi
je 0x42ee3f
lea eax, [ebx + edi + 2]
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x38], ebx
cmp byte [ebp + 0x24], bl
je 0x42eeac
mov eax, dword [esi + 0xafc]
test eax, eax
je 0x42ee5f
cmp dword [eax + 8], ebx
jne 0x42ee7d
mov eax, dword [esi + 0xb08]
test eax, eax
je 0x42ee6e
cmp dword [eax + 8], ebx
jne 0x42ee7d
lea eax, [esi + 0xb10]
call fcn.0042f480
test al, al
jne 0x42eeac
mov byte [ebp + 0x27], 1
cmp dword [ebp - 0x18], ebx
je 0x42eeaf
cmp byte [ebp + 0x14], bl
je 0x42eea5
push 0x4f5ac4
push 0x4f1c08
call fcn.004a4b10
add esp, 4
push eax
mov ecx, esi
call fcn.00477180
xor eax, eax
jmp 0x42f0d0
mov byte [ebp + 0x27], bl
mov eax, dword [ebp - 0x1c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42eeb5
sub eax, edx
sar eax, 1
mov dword [ebp - 0x24], eax
cmp eax, 0x4001
jb 0x42eedf
cmp byte [ebp + 0x14], bl
je 0x42eea5
push 0x4f5ac4
push 0x4f1c64
jmp 0x42ee95
cmp dword [ebp - 0x18], ebx
jne 0x42eff9
push 0x40
lea ecx, [ebp - 0xbc]
push 0
push ecx
call fcn.004d2f90
mov esi, dword [ebp + 0x18]
add esp, 0xc
mov dword [ebp - 0xc0], 0x44
mov dword [ebp - 0x94], 1
test esi, esi
je 0x42ef29
cmp word [esi], bx
je 0x42ef29
call fcn.0041c040
mov word [ebp - 0x90], ax
jmp 0x42ef35
mov edx, 1
mov word [ebp - 0x90], dx
xor eax, eax
mov dword [ebp - 0x34], ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
test ebx, ebx
je 0x42ef83
cmp word [ebx], ax
je 0x42ef83
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42ef54
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x24]
lea eax, [eax + eax + 0x14]
call fcn.004d1650
mov esi, esp
push ebx
push edi
push str._s__s
push esi
call fcn.004c9fb7
add esp, 0x10
jmp 0x42efaf
mov eax, dword [ebp - 0x24]
lea eax, [eax + eax + 2]
call fcn.004d1650
mov esi, esp
mov edx, esi
mov eax, edi
sub edx, edi
jmp 0x42efa0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x42efa0
cmp byte [ebp + 0x27], 0
je 0x42f049
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x38]
push edx
push eax
mov eax, dword [ebp + 0x28]
lea ecx, [ebp - 0x11]
push ecx
mov ecx, dword [ebp - 0x90]
lea edx, [ebp - 0x34]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
mov cl, byte [ebp + 0x14]
push esi
push edx
mov edx, dword [ebp + 0x10]
call fcn.0044ffd0
test eax, eax
je 0x42eea5
cmp byte [ebp - 0x11], 0
jne 0x42f0a2
mov ebx, dword [ebp - 0x38]
cmp byte [ebp + 0x27], 0
jne 0x42f34e
push 0x38
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.004d2f90
mov esi, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0x78], 0x3c
mov dword [ebp - 0x74], 0x440
mov dword [ebp - 0x60], ecx
test esi, esi
je 0x42f143
cmp word [esi], 0
je 0x42f143
call fcn.0041c040
mov dword [ebp - 0x5c], eax
jmp 0x42f14a
cmp dword [ebp + 0x2c], 0
je 0x42f0f4
mov ecx, dword [ebp + 0x10]
push esi
lea edi, [ebp - 0x34]
lea eax, [ebp - 0xc0]
call fcn.00485a10
mov ecx, dword [ebp + 0x34]
add esp, 4
mov dword [ecx], eax
test eax, eax
je 0x42f0e9
mov eax, dword [ebp + 0x30]
mov edx, dword [ebp - 0x84]
mov dword [eax], edx
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x42f08a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x20]
mov dword [edx], ecx
test eax, eax
je 0x42f0a2
push eax
mov eax, dword [ebp - 0x2c]
call fcn.004016b0
cmp byte [ebp + 0x20], 0
je 0x42f0b5
mov edx, dword [0x5165ec]
mov dword [edx + 0x30], 0
cmp dword [ebp + 0x1c], 0
jne 0x42f0cb
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
test eax, eax
je 0x42f0cb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
lea esp, [ebp - 0x15d0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x42f003
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xc0]
push ecx
push edx
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 0x42f0e9
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x42f128
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x28], 0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
je 0x42f0a2
mov edx, dword [ebp + 0x28]
push edx
jmp 0x42f09a
mov dword [ebp - 0x5c], 1
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x42f173
push str._:_7_9__
mov dword [ebp - 0x6c], esi
call fcn.004a4b10
add esp, 4
push eax
push esi
call fcn.004c9bad
add esp, 8
test eax, eax
jne 0x42f173
or dword [ebp - 0x74], 0xc
cmp dword [ebp - 0x10], 0
jne 0x42f2a7
mov eax, dword [ebp - 0x24]
lea eax, [eax + eax + 2]
call fcn.004d1650
mov eax, dword [ebp - 0x1c]
mov ebx, esp
mov edx, ebx
sub edx, eax
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x42f192
cmp word [ebx], 0x22
jne 0x42f1e3
lea esi, [ebx + 2]
push 0x22
push esi
call fcn.004ca9cb
add esp, 8
test eax, eax
je 0x42f1e3
xor edx, edx
mov word [eax], dx
add eax, 2
mov dword [ebp - 0x1c], esi
cmp word [eax], dx
je 0x42f2a7
cmp word [eax], 0x20
mov dword [ebp - 0x10], eax
jne 0x42f2a7
add dword [ebp - 0x10], 2
jmp 0x42f2a7
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x42f1f1
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebx + 2]
push 0x20
push eax
call fcn.004ca9cb
mov edi, eax
add esp, 8
test edi, edi
je 0x42f296
lea esp, [esp]
lea esi, [edi - 2]
cmp esi, ebx
jbe 0x42f233
movzx ecx, word [esi]
push ecx
push 0x4f1ca4
call fcn.004ca9cb
add esp, 8
test eax, eax
jne 0x42f233
sub esi, 2
cmp esi, ebx
ja 0x42f217
cmp word [esi], 0x2e
jne 0x42f277
mov eax, edi
sub eax, esi
xor edx, edx
and eax, 0xfffffffe
mov word [edi], dx
cmp eax, 8
jne 0x42f264
push str.___f7_1o:b___h__
call fcn.004a4b10
mov ecx, eax
add esp, 4
mov eax, esi
call fcn.004ac420
test eax, eax
jne 0x42f28d
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x42f28d
mov ecx, 0x20
mov word [edi], cx
push 0x20
add edi, 2
push edi
call fcn.004ca9cb
mov edi, eax
add esp, 8
test edi, edi
jne 0x42f210
jmp 0x42f296
add edi, 2
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], edi
cmp dword [ebp + 0x10], 0
je 0x42f2a7
push 0x51b6d8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x78]
push ecx
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x64], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x42f346
test byte [0x51f564], 1
jne 0x42f313
or dword [0x51f564], 1
push 0x4f1ce8
mov dword [ebp - 4], 0
call fcn.004a4bf0
add esp, 4
push eax
push str.____9wo__
call fcn.004a4b10
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x51f560], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x42f318
mov eax, dword [0x51f560]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x20]
mov dword [edx], ecx
test ecx, ecx
je 0x42f0a2
cmp dword [ebp + 0x28], 0
je 0x42f0a2
test eax, eax
je 0x42f0a2
push ecx
call eax
mov ecx, dword [ebp + 0x28]
push ecx
jmp 0x42f09d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp byte [ebp + 0x20], 0
je 0x42f35d
mov edx, dword [0x5165ec]
mov dword [edx + 0x30], ebx
cmp byte [ebp + 0x14], 0
je 0x42eea5
push 0
push 0x1ff
lea eax, [ebp - 0x5c0]
push eax
push 0
push ebx
push 0
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
cmp dword [ebp - 0x18], 0
je 0x42f3b2
mov ecx, dword [ebp - 0x18]
push ecx
push 0x4f1d2c
call fcn.004a4b10
add esp, 4
push eax
mov esi, 0x80
lea edi, [ebp - 0x1c0]
call fcn.004ac070
add esp, 8
jmp 0x42f3bb
xor edx, edx
mov word [ebp - 0x1c0], dx
cmp dword [ebp - 0x10], 0
mov esi, 0x4f5ac4
jne 0x42f3c9
mov dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x10]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42f3d0
sub eax, edx
sar eax, 1
mov edi, 0x4ec7dc
cmp eax, 0x190
ja 0x42f3ed
mov edi, esi
mov ebx, dword [ebp - 0x1c]
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42f3f5
sub eax, edx
sar eax, 1
cmp eax, 0x190
jbe 0x42f410
mov esi, 0x4ec7dc
cmp byte [ebp + 0x27], 0
je 0x42f41d
push 0x4f1d58
jmp 0x42f422
push 0x4f1dc0
call fcn.004a4b10
mov ecx, dword [ebp - 0x10]
add esp, 4
push edi
push ecx
lea edx, [ebp - 0x1c0]
push edx
push esi
push ebx
push eax
push 0x4f1e30
call fcn.004a4b10
add esp, 4
push eax
mov esi, 0x800
lea edi, [ebp - 0x15c0]
call fcn.004ac070
add esp, 0x1c
lea eax, [ebp - 0x5c0]
push eax
mov ecx, edi
push ecx
mov ecx, dword [ebp + 8]
call fcn.00477180
xor eax, eax
jmp 0x42f0d0