Function at 0x403da0
Capabilities:
Get graphical window text
Hide graphical window
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x120]
sub esp, 0x120
push 0xffffffffffffffff
push 0x437f98
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x44d958]
xor eax, ebp
mov dword [ebp + 0x11c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x12c]
xor edi, edi
mov esi, dword [ebp + 0x128]
mov ebx, dword [ebp + 0x130]
push 0x104
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x18]
push edi
push eax
mov dword [ebp - 0x14], esi
call fcn.00430eb0
push 0x58
lea eax, [ebp - 0x6c]
push edi
push eax
call fcn.00430eb0
add esp, 0x18
mov dword [ebp - 0x68], esi
xor ecx, ecx
mov dword [ebp - 0x6c], 0x58
cmp dword [ebp + 0x134], 6
lea eax, [ebp + 0x18]
mov dword [ebp - 0x50], eax
mov eax, 0x43a5c0
push ecx
cmovne eax, ecx
mov byte [ebp + 0x18], 0
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 0x4c], 0x104
mov dword [ebp - 0x60], str.Lua_Files__.lua_
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x38], 0x802
mov dword [ebp - 0x40], eax
call esi
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
push 5
push dword [ebp - 0x14]
call esi
push 0x989680
call fcn.0042eb6e
push 0x989680
mov esi, eax
push edi
push esi
call fcn.00430eb0
add esp, 0x10
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x403ead
push 0x989680
push esi
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x403ec5
push 0x989680
push esi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edx, dword [ebp - 0x50]
mov ecx, edx
lea ebx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403ed0
sub ecx, ebx
je 0x404012
mov dword [ebp + 0x10], edi
mov dword [ebp + 0x14], edi
mov dword [ebp + 0x14], 0xf
mov dword [ebp + 0x10], edi
mov byte [ebp], al
cmp byte [edx], al
jne 0x403efa
xor ecx, ecx
jmp 0x403f09
mov ecx, edx
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403f00
sub ecx, edi
push ecx
push edx
lea ecx, [ebp]
call fcn.004028e0
mov dword [ebp - 4], 0
lea ecx, [ebp]
push 4
push 0
push 0x43a5d0
call fcn.00404870
cmp eax, 0xffffffff
jne 0x403f53
cmp dword [ebp - 0x54], 1
jne 0x403f53
push 4
push str..lua
lea ecx, [ebp]
call fcn.004026a0
cmp dword [ebp + 0x14], 0x10
lea eax, [ebp]
cmovae eax, dword [ebp]
mov dword [ebp - 0x50], eax
push 4
push 0
push 0x43a5e0
lea ecx, [ebp]
call fcn.00404870
cmp eax, 0xffffffff
jne 0x403f8e
cmp dword [ebp - 0x54], 2
jne 0x403f8e
push 4
push str..txt
lea ecx, [ebp]
call fcn.004026a0
cmp dword [ebp + 0x14], 0x10
lea eax, [ebp]
cmovae eax, dword [ebp]
mov dword [ebp - 0x50], eax
jmp 0x403f91
mov eax, dword [ebp - 0x50]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
je 0x403fcf
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403fb5
push 0
lea eax, [ebp - 0x10]
sub ecx, edx
push eax
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x403fe4
push 0x30
push 0x43a5f0
push str.could_not_save_file
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x14]
cmp eax, 0x10
jb 0x404000
inc eax
lea ecx, [ebp]
push eax
push dword [ebp]
call fcn.004029e0
mov dword [ebp + 0x14], 0xf
mov dword [ebp + 0x10], 0
mov byte [ebp], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0042eb77
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x11c]
xor ecx, ebp
call fcn.0042eb7c
lea esp, [ebp + 0x120]
pop ebp
ret