Function at 0x565ac0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab498
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5f300c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0
lea ecx, [edi + 0xb0c]
push 0x5d30e0
call fcn.00528190
mov ebx, eax
cmp ebx, 0x64
jle 0x565b0d
mov ebx, 0x64
jmp 0x565b17
cmp ebx, 1
jge 0x565b17
mov ebx, 1
lea ecx, [edi + 0xbc4]
mov dword [edi + 0xbd0], 1
push ecx
push ebx
mov dword [edi + 0xbd4], 1
mov dword [edi + 0xbb0], 0
call fcn.0054b810
lea esi, [edi + 0xbb8]
push esi
push ebx
mov ecx, esi
call fcn.0041ca40
mov eax, dword [esi]
lea ebx, [edi + 0xb0c]
push SysReAllocString
push str.position.left
mov ecx, ebx
mov dword [eax], 0
call fcn.00528190
push SysReAllocString
push str.position.top
mov ecx, ebx
mov esi, eax
call fcn.00528190
push SysReAllocString
push str.position.width
mov ecx, ebx
mov dword [ebp - 0x54], eax
call fcn.00528190
push SysReAllocString
push str.position.height
mov ecx, ebx
mov dword [ebp - 0x50], eax
call fcn.00528190
push 0
push 0x5d70bc
mov ecx, ebx
mov dword [ebp - 0x4c], eax
call fcn.00528190
neg eax
sbb eax, eax
and eax, 3
cmp dword [ebp - 0x50], 0xffffffff
mov dword [edi + 0xc74], eax
je 0x565bd5
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x565bed
mov dword [edi + 0xc74], 3
mov dword [ebp - 0x50], SysReAllocString
mov dword [ebp - 0x4c], SysReAllocString
push 0
push str.position.tile
mov ecx, ebx
call fcn.00528190
test eax, eax
je 0x565c1f
push 0
push str.SciTEWindow
call dword [sym.imp.USER32.dll_FindWindowW]
mov ecx, dword [ebp - 0x50]
test eax, eax
je 0x565c22
cmp esi, 0x80000000
je 0x565c22
add esi, ecx
jmp 0x565c22
mov ecx, dword [ebp - 0x50]
cmp dword [edi + 0x250], 8
lea eax, [edi + 0x23c]
jb 0x565c33
mov eax, dword [eax]
push edi
push dword [0x602f64]
push 0
push 0
push dword [ebp - 0x4c]
push ecx
push dword [ebp - 0x54]
push esi
push 0x2cf0000
push eax
push dword [0x602f60]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [edi + 0x7b0], eax
push 0
test eax, eax
jne 0x565c6c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push str.save.position
mov ecx, ebx
call fcn.00528190
test eax, eax
je 0x565c83
mov ecx, edi
call fcn.005659c0
mov ecx, edi
call fcn.0056b060
push str.print.margins
lea eax, [ebp - 0x48]
mov ecx, ebx
push eax
call fcn.00527430
mov dword [ebp - 4], 0
lea ebx, [ebp - 0x48]
xor eax, eax
cmp dword [ebp - 0x34], 0x10
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov word [ebp - 0x13], ax
mov byte [ebp - 0x11], al
jb 0x565ccb
mov ebx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], 0x1f
mov byte [ebp - 0x30], al
test ebx, ebx
jne 0x565cdd
xor esi, esi
jmp 0x565d13
push 0x2c
push ebx
call dword [sym.imp.VCRUNTIME140.dll_strchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x565cfa
sub eax, ebx
cmp eax, 0x1f
jge 0x565cf9
mov dword [ebp - 0x4c], eax
inc esi
push dword [ebp - 0x4c]
lea eax, [ebp - 0x30]
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov eax, dword [ebp - 0x4c]
add esp, 0xc
mov byte [ebp + eax - 0x30], 0
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atol]
add esp, 4
mov dword [edi + 0x12d4], eax
mov dword [ebp - 0x4c], 0x1f
mov byte [ebp - 0x30], 0
test esi, esi
jne 0x565d39
xor ebx, ebx
jmp 0x565d6f
push 0x2c
push esi
call dword [sym.imp.VCRUNTIME140.dll_strchr]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x565d56
sub eax, esi
cmp eax, 0x1f
jge 0x565d55
mov dword [ebp - 0x4c], eax
inc ebx
push dword [ebp - 0x4c]
lea eax, [ebp - 0x30]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov eax, dword [ebp - 0x4c]
add esp, 0xc
mov byte [ebp + eax - 0x30], 0
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atol]
add esp, 4
mov dword [edi + 0x12dc], eax
mov dword [ebp - 0x4c], 0x1f
mov byte [ebp - 0x30], 0
test ebx, ebx
jne 0x565d95
xor esi, esi
jmp 0x565dcb
push 0x2c
push ebx
call dword [sym.imp.VCRUNTIME140.dll_strchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x565db2
sub eax, ebx
cmp eax, 0x1f
jge 0x565db1
mov dword [ebp - 0x4c], eax
inc esi
push dword [ebp - 0x4c]
lea eax, [ebp - 0x30]
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov eax, dword [ebp - 0x4c]
add esp, 0xc
mov byte [ebp + eax - 0x30], 0
mov ebx, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atol]
lea eax, [ebp - 0x30]
push eax
call ebx
add esp, 4
mov dword [edi + 0x12d8], eax
mov dword [ebp - 0x4c], 0x1f
mov byte [ebp - 0x30], 0
test esi, esi
je 0x565e27
push 0x2c
push esi
call dword [sym.imp.VCRUNTIME140.dll_strchr]
add esp, 8
test eax, eax
je 0x565e0b
sub eax, esi
cmp eax, 0x1f
jge 0x565e0b
mov dword [ebp - 0x4c], eax
jmp 0x565e10
mov eax, 0x1f
push eax
lea eax, [ebp - 0x30]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov eax, dword [ebp - 0x4c]
add esp, 0xc
mov byte [ebp + eax - 0x30], 0
lea eax, [ebp - 0x30]
push eax
call ebx
add esp, 4
mov dword [edi + 0x12e0], eax
mov ecx, edi
call fcn.0053f010
mov edx, dword [ebp - 0x34]
cmp edx, 0x10
jb 0x565e73
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x565e69
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x565e69
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0059e222
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059df64
mov esp, ebp
pop ebp