Function at 0x10001813
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0
push dword [ebp + 0x10]
call fcn.10001c23
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10001be0
cmp dword [0x100053c2], 0
jne 0x10001972
mov dword [ebp - 0xc], esp
call dword [sym.imp.USER32.dll_GetForegroundWindow]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10001870
push 6
call fcn.10003116
add esp, 4
cmp dword [ebp - 4], eax
jne 0x10001940
push 0x80000301
push 0
push 0x104
push 1
mov ebx, 0x184
call fcn.10003420
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x100018ae
push ebx
call fcn.1000310a
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0x104
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetClassNameA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x100018dc
push 6
call fcn.10003116
add esp, 4
push str.Dungeon__Fighter
push dword [ebp - 8]
call fcn.10001776
add esp, 8
cmp eax, 0
jne 0x10001940
mov dword [ebp - 0xc], esp
push 0x104
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x1000191f
push 6
call fcn.10003116
add esp, 4
push str.Dungeon__Fighter
push dword [ebp - 8]
call fcn.10001776
add esp, 8
cmp eax, 0
jne 0x10001940
mov eax, dword [ebp - 4]
mov dword [0x100053c2], eax
mov dword [ebp - 0xc], esp
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
call dword [sym.imp.USER32.dll_CallNextHookEx]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x1000196d
push 6
call fcn.10003116
add esp, 4
jmp 0x10001c0d
mov eax, dword [ebp - 4]
cmp dword [0x100053c2], eax
jne 0x10001be0
push 4
push dword [ebp + 0x10]
call fcn.10001c23
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x101
jne 0x10001be0
push 8
push dword [ebp + 0x10]
call fcn.10001c23
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xc0
jne 0x100019d5
call fcn.10001c47
mov dword [ebp - 0xc], eax
push 1
push dword [ebp - 0xc]
call fcn.10001c68
jmp 0x10001be0
cmp dword [0x100053c6], 0
jne 0x10001a03
push 8
push dword [ebp + 0x10]
call fcn.10001c23
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x24
jne 0x10001a03
mov eax, 1
jmp 0x10001a08
mov eax, 0
test eax, eax
je 0x10001a4b
mov dword [ebp - 0xc], esp
push 0x10002954
push 0x3e8
push 0x208
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetTimer]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10001a41
push 6
call fcn.10003116
add esp, 4
mov dword [0x100053c6], eax
jmp 0x10001be0
cmp dword [0x100053c6], 0
je 0x10001a79
push 8
push dword [ebp + 0x10]
call fcn.10001c23
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x23
jne 0x10001a79
mov eax, 1
jmp 0x10001a7e
mov eax, 0
test eax, eax
je 0x10001ab3
mov dword [ebp - 0xc], esp
push dword [0x100053c6]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_KillTimer]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10001aae
push 6
call fcn.10003116
add esp, 4
jmp 0x10001be0
cmp dword [0x100053ca], 0
jne 0x10001ae1
push 8
push dword [ebp + 0x10]
call fcn.10001c23
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x70
jne 0x10001ae1
mov eax, 1
jmp 0x10001ae6
mov eax, 0
test eax, eax
je 0x10001b2c
mov dword [ebp - 0xc], esp
push 0x10002b7b
push 0x3e8
push 0x230
push dword [0x100053ce]
call dword [sym.imp.USER32.dll_SetTimer]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10001b22
push 6
call fcn.10003116
add esp, 4
mov dword [0x100053ca], eax
jmp 0x10001be0
cmp dword [0x100053d2], 0
jne 0x10001b5a
push 8
push dword [ebp + 0x10]
call fcn.10001c23
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x71
jne 0x10001b5a
mov eax, 1
jmp 0x10001b5f
mov eax, 0
test eax, eax
je 0x10001ba2
mov dword [ebp - 0xc], esp
push 0x10002caa
push 0x3e8
push 0x21c
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetTimer]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10001b98
push 6
call fcn.10003116
add esp, 4
mov dword [0x100053d2], eax
jmp 0x10001be0
push 8
push dword [ebp + 0x10]
call fcn.10001c23
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x72
jne 0x10001bc6
call fcn.10001cb9
jmp 0x10001be0
push 8
push dword [ebp + 0x10]
call fcn.10001c23
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x73
jne 0x10001be0
mov dword [ebp - 0xc], esp
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
call dword [sym.imp.USER32.dll_CallNextHookEx]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10001c0d
push 6
call fcn.10003116
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10001c1d
push ebx
call fcn.1000310a
add esp, 4
mov esp, ebp
pop ebp
ret 0xc