Function at 0x4596d0
Capabilities:
Create process on windows
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48abc5
push eax
mov dword fs:[0], esp
sub esp, 0x284
movzx eax, dx
add eax, 0xffffdad9
push ebx
push esi
push edi
mov edi, ecx
cmp eax, 4
ja case.default.0x459704
jmp dword [eax*4 + 0x4599ac]
push 0x10c
call fcn.00465591
add esp, 4
mov ebx, eax
push 0x104
lea ecx, [ebx + 8]
push 0
push ecx
call fcn.004682f0
add esp, 0xc
mov dword [ebx], 2
lea esi, [ebx + 8]
mov dword [ebx + 4], edi
push 0x104
push esi
push 0x2525
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, 0x4b052c
sub ecx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x459760
push ebx
call fcn.00458e70
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10c
call fcn.00465591
add esp, 4
mov esi, eax
push 0x104
lea ecx, [esi + 8]
push 0
push ecx
call fcn.004682f0
add esp, 0xc
mov dword [esi], 3
mov dword [esi + 4], edi
push esi
call fcn.00458e70
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Emulation_Lock
call fcn.00419590
add esp, 4
xor ecx, ecx
call fcn.0041c7b0
push 0x104
lea eax, [ebp - 0x188]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004682f0
add esp, 0xc
lea eax, [ebp - 0x80]
push 0x58
push 0
push eax
call fcn.004682f0
mov eax, dword [0x4b09c4]
add esp, 0xc
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x188]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0x58
push eax
mov dword [ebp - 0x74], str.Lua_Script_Files__.lua_
mov dword [ebp - 0x68], 1
mov dword [ebp - 0x60], 0x104
mov dword [ebp - 0x44], 0x4a4bd0
mov dword [ebp - 0x4c], 0x100c
mov dword [ebp - 0x54], 0
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
test eax, eax
jne 0x459870
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x24], al
jmp 0x4598a3
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x64]
mov ecx, edx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x459890
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x24]
call fcn.004235b0
call fcn.00458640
cmp dword [ebp - 0x14], 0
je 0x4598cd
cmp dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push eax
push 0x2525
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edx, dword [ebp - 0x10]
cmp edx, 0x10
jb 0x459901
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4598f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4599a6
push edx
push ecx
call fcn.004655c1
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [ebp - 0x290]
push eax
push 0x2525
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 1
push 0
push 0
lea eax, [ebp - 0x290]
push eax
push str.edit
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x49b569
push 0x2526
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004756b4
nop
or edx, dword [edi - 0x66e8ffbb]
inc ebp
add al, dl
xchg edi, eax
inc ebp
add byte [ebp - 0x67], ah
inc ebp
add byte [ecx + 0x53004597], cl
push ebx