Function at 0x407800
Capabilities:
Create process on windows
Enumerate gui resources
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x44ae88
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x461040]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x38], edi
mov esi, ecx
mov dword [ebp - 0x28], esi
mov eax, dword [ebp + 0x214]
mov ebx, dword [ebp + 0x224]
mov dword [ebp - 0x14], eax
mov al, byte [ebp + 0x21c]
mov byte [ebp - 0xd], al
mov eax, dword [ebp + 0x220]
push 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x78]
push 0x3c
push eax
mov dword [ebp - 0x34], ebx
call fcn.00408770
mov ecx, dword [esi]
sub ecx, 0x10
mov dword [ebp - 0x78], 0x3c
mov dword [ebp - 0x74], 0x440
call fcn.00402130
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 1
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.00402130
lea edi, [eax + 0x10]
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 3
add esp, 8
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.00407fb0
mov edx, eax
mov dword [ebp - 0x18], edx
mov byte [ebp - 4], 4
mov eax, dword [edx]
mov esi, dword [eax - 0xc]
test esi, esi
js 0x407c8b
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or eax, ecx
jge 0x4078ed
push esi
mov ecx, edx
call fcn.00402820
mov edx, dword [ebp - 0x18]
lea eax, [esi + 1]
push eax
push dword [edx]
call fcn.00432ac9
mov ecx, dword [ebp - 0x18]
add esp, 8
mov eax, dword [ecx]
cmp esi, dword [eax - 8]
jg 0x407c8b
mov dword [eax - 0xc], esi
xor edx, edx
mov eax, dword [ecx]
mov word [eax + esi*2], dx
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.00402130
lea esi, [eax + 0x10]
mov dword [ebp - 0x3c], esi
mov byte [ebp - 4], 7
or eax, 0xffffffff
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x407956
mov eax, dword [ecx]
mov dword [ebp - 0x18], eax
push ecx
mov eax, dword [eax]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [0x44e26c]
mov ecx, dword [ebp - 0x18]
call ebx
mov ebx, dword [ebp - 0x34]
cmp byte [ebp - 0xd], 0
je 0x407a0e
mov ecx, str..bat
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40798d
test dx, dx
je 0x407989
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40798d
add eax, 4
add ecx, 4
test dx, dx
jne 0x407967
xor eax, eax
jmp 0x407992
sbb eax, eax
or eax, 1
test eax, eax
je 0x4079cf
mov ecx, str..cmd
mov eax, esi
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4079c6
test dx, dx
je 0x4079c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4079c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4079a0
xor eax, eax
jmp 0x4079cb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x407a0e
push 0x104
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp]
push eax
lea eax, [ebp - 0x1c]
push str._sSystem32cmd.exe
push eax
call fcn.00401960
mov eax, dword [ebp - 0x38]
push dword [eax]
mov eax, dword [ebp - 0x28]
push dword [eax]
lea eax, [ebp - 0x20]
push str._C____s___s_
push eax
call fcn.00401960
mov edi, dword [ebp - 0x20]
add esp, 0x1c
mov eax, dword [ebp - 0x1c]
mov ecx, str.open
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x218]
neg eax
sbb eax, eax
and eax, 5
cmp byte [ebp - 0xd], 0
mov dword [ebp - 0x5c], eax
mov eax, str.runas
cmove eax, ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x60]
mov ecx, dword [ecx]
cmp dword [ecx - 0xc], 0
cmovne eax, ecx
mov dword [ebp - 0x60], eax
cmp dword [edi - 0xc], 0
mov eax, dword [ebp - 0x64]
cmovne eax, edi
cmp byte [ebp - 0xd], 0
mov dword [ebp - 0x64], eax
je 0x407a66
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x70], eax
test ebx, ebx
je 0x407a76
mov edx, ebx
lea ecx, [ebp - 0x78]
call fcn.00407d00
mov ebx, eax
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 0x14], eax
test ebx, ebx
je 0x407a95
mov edx, ebx
mov ecx, eax
call fcn.00407e40
mov ebx, eax
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x407acb
mov eax, dword [ebp - 0x58]
cmp eax, 0x1f
je 0x407aa6
cmp eax, 0x1b
jne 0x407acb
and dword [ebp - 0x74], 0xfffffbff
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x6c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test ebx, ebx
je 0x407acb
mov edx, ebx
mov ecx, eax
call fcn.00407e40
push dword [ebp - 0x3c]
lea eax, [ebp - 0x78]
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x84]
call fcn.00408130
add esp, 4
mov byte [ebp - 4], 9
mov ebx, dword [ebp - 0x40]
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x407bb1
push str.GetProcessId
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 0x14]
mov ebx, eax
mov ecx, eax
call dword [0x44e26c]
call ebx
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x407bb1
cmp dword [ebp + 0x218], 2
jne 0x407bb1
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 [ebp - 0x14], eax
test eax, eax
je 0x407bae
push ebx
mov ecx, eax
call dword [0x44e26c]
call dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
xor ebx, ebx
cmp ebx, 0x14
jge 0x407bae
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push 0x407ca0
mov dword [ebp - 0x28], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0x28]
inc ebx
test eax, eax
je 0x407b67
push 0x4003
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ebx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x407bd8
mov dword [eax], 0xffffffff
test ebx, ebx
je 0x407bd8
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x24]
push eax
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x84]
call fcn.00407f30
mov byte [ebp - 4], 3
or ebx, 0xffffffff
lea ecx, [esi - 0x10]
mov eax, ebx
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x407c14
mov ebx, dword [ecx]
push ecx
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x44e26c]
mov ecx, ebx
call esi
or ebx, 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [edi - 0x10]
mov eax, ebx
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x407c3b
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x44e26c]
mov ecx, edi
call esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x407c66
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x44e26c]
mov ecx, edi
call esi
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00429557
lea esp, [ebp + 0x20c]
pop ebp
ret
push 0x80070057
call fcn.004018f0
int3