Function at 0x411a00
Capabilities:
Get graphical window text

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48cf75
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4a8
mov eax, dword [0x4b3100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x41c], eax
mov edi, dword [eax + 0x94]
push 0x2843
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
push 0x147
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x411acf
push 0x16
xorps xmm0, xmm0
mov dword [ebp - 0x268], 0
push str.Choose_save_slot_first
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x264], 0
movups xmmword [ebp - 0x278], xmm0
call fcn.0043b8b0
cmp dword [ebp - 0x264], 7
lea eax, [ebp - 0x278]
push 0x10
cmova eax, dword [ebp - 0x278]
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x278]
jmp 0x41259b
lea edx, [eax + 1]
lea ecx, [ebp - 0x458]
call fcn.00405790
mov esi, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2a8]
push 5
xorps xmm0, xmm0
mov dword [ebp - 0x298], 0
push 0x4a4a70
movups xmmword [ebp - 0x2a8], xmm0
mov dword [ebp - 0x294], 0
call fcn.0043b8b0
lea eax, [ebp - 0x2a8]
mov byte [ebp - 4], 1
push eax
mov edx, 0x4a4a7c
lea ecx, [ebp - 0x440]
call fcn.004386d0
add esp, 4
push esi
push eax
push dword [ebp - 0x414]
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.00442f90
push 0x4a4a6c
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
call fcn.0042fad0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x290], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x280], xmm0
mov dword [eax + 0x10], 0
xor ecx, ecx
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x230]
call fcn.00405cd0
lea ecx, [ebp - 0x440]
call fcn.00405cd0
lea ecx, [ebp - 0x2a8]
call fcn.00405cd0
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 8
call fcn.00405cd0
push 0x364f
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x100
lea ecx, [ebp - 0x218]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
xorps xmm0, xmm0
mov dword [ebp - 0x268], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x264], 0
movups xmmword [ebp - 0x278], xmm0
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411c00
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x278]
call fcn.0043b8b0
mov byte [ebp - 4], 9
mov edi, dword [ebp - 0x268]
test edi, edi
jne 0x411c8b
push 0x1c
xorps xmm0, xmm0
mov dword [ebp - 0x220], edi
push str.Please_enter_a_location_name
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], edi
movups xmmword [ebp - 0x230], xmm0
call fcn.0043b8b0
cmp dword [ebp - 0x21c], 7
lea eax, [ebp - 0x230]
push 0x10
cmova eax, dword [ebp - 0x230]
push str.Error
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x230]
call fcn.00405cd0
jmp 0x41258a
push 0xb8
lea eax, [ebp - 0x360]
push 0
push eax
call fcn.00463f40
mov esi, dword [ebp - 0x41c]
lea ecx, [ebp - 0x360]
add esi, 0x4c
push esi
call fcn.0042da10
xorps xmm0, xmm0
mov dword [ebp - 0x250], 0
xor eax, eax
mov dword [ebp - 0x24c], 7
movups xmmword [ebp - 0x260], xmm0
mov word [ebp - 0x260], ax
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x360]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x354], 6
jne 0x412531
xor ecx, ecx
mov dword [ebp - 0x220], 0
movups xmmword [ebp - 0x230], xmm0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], cx
lea ecx, [ebp - 0x360]
mov byte [ebp - 4], 0xc
add ecx, eax
push 0xa
call fcn.00437690
movzx eax, ax
lea edx, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x360]
call fcn.00446670
add esp, 4
mov edx, SysReAllocString
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x411e39
mov esi, dword [ebp - 0x414]
nop
mov ecx, dword [ebp - 0x220]
sub edx, ecx
cmp edx, 1
jb 0x4125c8
cmp dword [ebp - 0x21c], 7
lea eax, [ebp - 0x230]
push 1
cmova eax, dword [ebp - 0x230]
push 0x4a4a80
push ecx
push eax
push ecx
push esi
lea ecx, [ebp - 0x248]
call fcn.00443140
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x260]
call fcn.004344b0
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x234]
cmp ecx, 7
jbe 0x411df5
mov edx, dword [ebp - 0x248]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x411deb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4125be
push ecx
push edx
call fcn.00460ed3
add esp, 8
mov eax, dword [ebp - 0x360]
lea ecx, [ebp - 0x360]
push 0xa
add ecx, dword [eax + 4]
call fcn.00437690
movzx eax, ax
lea edx, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x360]
call fcn.00446670
add esp, 4
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x411e39
mov edx, SysReAllocString
jmp 0x411d60
lea ecx, [ebp - 0x350]
call fcn.00433a70
test eax, eax
jne 0x411e71
mov eax, dword [ebp - 0x360]
lea ecx, [ebp - 0x360]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00405180
lea ecx, [ebp - 0x230]
call fcn.00405cd0
xorps xmm0, xmm0
mov dword [ebp - 0x298], 0
xor eax, eax
mov dword [ebp - 0x294], 7
movups xmmword [ebp - 0x2a8], xmm0
mov word [ebp - 0x2a8], ax
mov byte [ebp - 4], 0xe
mov al, byte [0x4b6068]
test al, al
jne 0x41201a
cmp byte [0x4b6078], al
jne 0x41218c
cmp byte [0x4b5f78], al
jne 0x41218c
movss xmm1, dword [0x4b5f70]
lea ecx, [ebp - 0x4a0]
call fcn.004058e0
mov dword [ebp - 0x418], eax
mov byte [ebp - 4], 0xf
cmp byte [0x4b6078], 0
jne 0x4125c3
movss xmm1, dword [0x4b6070]
lea ecx, [ebp - 0x488]
call fcn.004058e0
mov esi, eax
mov byte [ebp - 4], 0x10
cmp byte [0x4b6068], 0
jne 0x4125c3
movss xmm1, dword [0x4b6060]
lea ecx, [ebp - 0x470]
call fcn.004058e0
push eax
mov edx, 0x4a4aec
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x4b8]
call fcn.004386d0
add esp, 4
push str.__y
mov edx, eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x440]
call fcn.004385b0
add esp, 4
push esi
push eax
push dword [ebp - 0x414]
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x13
call fcn.00442f90
push 0x4a4abc
lea edx, [ebp - 0x230]
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x458]
call fcn.004385b0
add esp, 4
push dword [ebp - 0x418]
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x15
push eax
push dword [ebp - 0x414]
call fcn.00442f90
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x2a8]
call fcn.0042fbe0
lea ecx, [ebp - 0x248]
call fcn.00405cd0
lea ecx, [ebp - 0x458]
call fcn.00405cd0
lea ecx, [ebp - 0x230]
call fcn.00405cd0
lea ecx, [ebp - 0x440]
call fcn.00405cd0
lea ecx, [ebp - 0x4b8]
call fcn.00405cd0
lea ecx, [ebp - 0x470]
call fcn.00405cd0
lea ecx, [ebp - 0x488]
call fcn.00405cd0
lea ecx, [ebp - 0x4a0]
jmp 0x412183
cmp al, 1
jne 0x41218c
cmp byte [0x4b6078], al
jne 0x41218c
cmp byte [0x4b5f78], al
jne 0x41218c
movsd xmm1, qword [0x4b5f70]
lea ecx, [ebp - 0x440]
call fcn.00405870
mov dword [ebp - 0x418], eax
mov byte [ebp - 4], 0x16
cmp byte [0x4b6078], 1
jne 0x4125c3
movsd xmm1, qword [0x4b6070]
lea ecx, [ebp - 0x458]
call fcn.00405870
mov esi, eax
mov byte [ebp - 4], 0x17
cmp byte [0x4b6068], 1
jne 0x4125c3
movsd xmm1, qword [0x4b6060]
lea ecx, [ebp - 0x4b8]
call fcn.00405870
push eax
mov edx, 0x4a4aec
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x470]
call fcn.004386d0
add esp, 4
push str.__y
mov edx, eax
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x488]
call fcn.004385b0
add esp, 4
push esi
push eax
push dword [ebp - 0x414]
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x1a
call fcn.00442f90
push 0x4a4abc
lea edx, [ebp - 0x230]
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x4a0]
call fcn.004385b0
add esp, 4
push dword [ebp - 0x418]
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x1c
push eax
push dword [ebp - 0x414]
call fcn.00442f90
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x2a8]
call fcn.0042fbe0
lea ecx, [ebp - 0x248]
call fcn.00405cd0
lea ecx, [ebp - 0x4a0]
call fcn.00405cd0
lea ecx, [ebp - 0x230]
call fcn.00405cd0
lea ecx, [ebp - 0x488]
call fcn.00405cd0
lea ecx, [ebp - 0x470]
call fcn.00405cd0
lea ecx, [ebp - 0x4b8]
call fcn.00405cd0
lea ecx, [ebp - 0x458]
call fcn.00405cd0
lea ecx, [ebp - 0x440]
mov byte [ebp - 4], 0xe
call fcn.00405cd0
mov eax, SysReAllocString
sub eax, edi
cmp eax, 3
jb 0x4125c8
cmp dword [ebp - 0x264], 7
lea eax, [ebp - 0x278]
push 3
cmova eax, dword [ebp - 0x278]
push 0x4a4c4c
push edi
push eax
push ecx
push dword [ebp - 0x414]
lea ecx, [ebp - 0x248]
call fcn.00443140
lea eax, [ebp - 0x2a8]
mov byte [ebp - 4], 0x1d
push eax
lea edx, [ebp - 0x248]
lea ecx, [ebp - 0x4a0]
call fcn.00438740
add esp, 4
push 0x4a4a80
mov edx, eax
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x230]
call fcn.004385b0
add esp, 4
lea ecx, [ebp - 0x4a0]
call fcn.00405cd0
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x21
call fcn.00405cd0
mov esi, dword [ebp - 0x27c]
lea ecx, [ebp - 0x290]
mov edi, dword [ebp - 0x290]
lea edx, [ebp - 0x260]
mov eax, dword [ebp - 0x250]
cmp esi, 7
cmova ecx, edi
cmp dword [ebp - 0x24c], 7
mov dword [ebp - 0x418], ecx
cmova edx, dword [ebp - 0x260]
mov ecx, dword [ebp - 0x280]
mov dword [ebp - 0x414], edx
cmp ecx, eax
ja 0x4123ab
sub eax, ecx
test ecx, ecx
jne 0x412276
xor edx, edx
jmp 0x41232c
inc eax
lea ecx, [edx + eax*2]
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x428], ecx
movzx esi, word [eax]
mov dword [ebp - 0x424], esi
nop
sub ecx, edx
mov edi, 0
sar ecx, 1
je 0x4122bd
movzx eax, word [edx]
cmp ax, si
je 0x4122b5
cmp ecx, 1
je 0x4122b7
movzx eax, word [edx + 2]
add edx, 2
dec ecx
cmp ax, si
jne 0x4122a3
mov edi, edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x280]
mov edx, edi
test edx, edx
je 0x41239f
mov edi, ecx
mov esi, eax
test edi, edi
je 0x41231f
mov eax, edx
sub eax, dword [ebp - 0x418]
mov dword [ebp - 0x420], eax
movzx ecx, word [eax + esi]
movzx eax, word [esi]
cmp cx, ax
jne 0x4122ff
add esi, 2
sub edi, 1
je 0x412319
mov eax, dword [ebp - 0x420]
jmp 0x4122e3
mov esi, dword [ebp - 0x424]
add edx, 2
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x428]
jmp 0x412290
mov ecx, dword [ebp - 0x280]
sub edx, dword [ebp - 0x414]
sar edx, 1
cmp edx, 0xffffffff
je 0x41239f
cmp dword [ebp - 0x24c], 7
lea ecx, [ebp - 0x260]
push 1
cmova ecx, dword [ebp - 0x260]
push 0x4a4a80
push edx
mov edx, dword [ebp - 0x250]
call fcn.0043b6b0
add esp, 0xc
cmp eax, 0xffffffff
je 0x412388
cmp dword [ebp - 0x21c], 7
lea ecx, [ebp - 0x230]
push dword [ebp - 0x220]
cmova ecx, dword [ebp - 0x230]
inc eax
push ecx
push eax
lea ecx, [ebp - 0x260]
call fcn.004343c0
jmp 0x41244f
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x260]
call fcn.004344b0
jmp 0x41244f
mov edi, dword [ebp - 0x290]
mov esi, dword [ebp - 0x27c]
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 1
jb 0x4125cd
push 1
push 0x4a4a80
push ecx
cmp esi, 7
lea eax, [ebp - 0x290]
cmova eax, edi
push eax
push ecx
push dword [ebp - 0x414]
lea ecx, [ebp - 0x440]
call fcn.00443140
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x22
push eax
lea edx, [ebp - 0x440]
lea ecx, [ebp - 0x470]
call fcn.00438740
add esp, 4
push 0x4a4a80
mov edx, eax
mov byte [ebp - 4], 0x23
lea ecx, [ebp - 0x488]
call fcn.004385b0
add esp, 4
push eax
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0x24
call fcn.004344b0
lea ecx, [ebp - 0x488]
call fcn.00405cd0
lea ecx, [ebp - 0x470]
call fcn.00405cd0
lea ecx, [ebp - 0x440]
mov byte [ebp - 4], 0x21
call fcn.00405cd0
push 0xb0
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.00463f40
mov edi, dword [ebp - 0x41c]
lea ecx, [ebp - 0x410]
lea esi, [edi + 0x4c]
push esi
call fcn.0042c870
mov byte [ebp - 4], 0x25
mov eax, dword [ebp - 0x410]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x404], 6
jne 0x4124c3
cmp dword [ebp - 0x24c], 7
lea edx, [ebp - 0x260]
push dword [ebp - 0x250]
cmova edx, dword [ebp - 0x260]
lea ecx, [ebp - 0x410]
call fcn.00446b90
add esp, 4
lea ecx, [ebp - 0x410]
call fcn.0042c830
jmp 0x412506
push esi
mov edx, str.Failed_to_write_to_file:
lea ecx, [ebp - 0x248]
call fcn.00438670
add esp, 4
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x234], 7
cmova eax, dword [ebp - 0x248]
push 0x10
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x248]
call fcn.00405cd0
push dword [edi + 0x94]
mov ecx, edi
call fcn.004125e0
lea ecx, [ebp - 0x410]
call fcn.00415860
lea ecx, [ebp - 0x230]
call fcn.00405cd0
lea ecx, [ebp - 0x2a8]
jmp 0x41256f
push esi
mov edx, str.Failed_to_open_file:
lea ecx, [ebp - 0x248]
call fcn.00438670
add esp, 4
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x234], 7
cmova eax, dword [ebp - 0x248]
push 0x10
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x248]
call fcn.00405cd0
lea ecx, [ebp - 0x260]
call fcn.00405cd0
lea ecx, [ebp - 0x360]
call fcn.004157d0
lea ecx, [ebp - 0x278]
call fcn.00405cd0
lea ecx, [ebp - 0x290]
call fcn.00405cd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00460925
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00474a77
call fcn.00403850
call fcn.00403980
call fcn.00403980
int3