Function at 0x4db414
Capabilities:
Get graphical window text
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, 0x5217a4
mov edi, 0x4fcdb8
mov ebx, 0x5217c0
mov eax, dword [ebp + 8]
push eax
call fcn.004eae80
mov dword [0x521788], eax
cmp dword [0x521788], 0
jne 0x4db44e
mov edx, dword [ebp + 8]
push edx
call fcn.004db210
jmp 0x4dbcd0
mov ecx, dword [0x521788]
mov eax, dword [ecx + 0x5d0]
mov dword [0x5217b0], eax
cmp dword [0x5217b0], 0
je 0x4db475
call sub.USER32.dll_GetFocus
cmp eax, dword [0x5217b0]
je 0x4db481
push 0
call sub.USER32.dll_MessageBeep
jmp 0x4dbcd0
push 0
push 0
push 0xb0
mov edx, dword [0x5217b0]
push edx
call sub.USER32.dll_SendMessageA
mov dword [0x5217ac], eax
movzx edx, word [0x5217ac]
mov dword [0x521798], edx
mov eax, edx
mov dword [0x521794], eax
test eax, eax
jge 0x4db4bb
xor ecx, ecx
mov dword [0x521794], ecx
cmp edx, dword [0x521794]
jge 0x4db4cd
mov eax, dword [0x521794]
mov dword [0x521798], eax
push 0
push 0
push 0xe
mov edx, dword [0x5217b0]
push edx
call sub.USER32.dll_SendMessageA
mov dword [0x52179c], eax
cmp dword [0x52179c], 0
jle 0x4db4f6
cmp dword [0x4fcdb4], 0
je 0x4db504
mov ecx, dword [ebp + 8]
push ecx
call fcn.004db210
jmp 0x4dbcd0
push 0x515aff
push 0x3e6
push 0xd
mov eax, dword [0x5217b0]
push eax
call sub.USER32.dll_SendMessageA
mov dword [0x52179c], eax
cmp dword [0x52179c], 0
jg 0x4db535
push 0
call sub.USER32.dll_MessageBeep
jmp 0x4dbcd0
mov edx, dword [0x52179c]
mov byte [edx + 0x515aff], 0
push 0x515aff
call fcn.004db174
test eax, eax
je 0x4db59e
push 0x4fce4b
push 0
push 0xc
mov ecx, dword [0x5217b0]
push ecx
call sub.USER32.dll_SendMessageA
mov eax, dword [0x5217b0]
push eax
call sub.USER32.dll_UpdateWindow
mov edx, dword [ebp + 8]
push edx
call fcn.004db210
jmp 0x4dbcd0
mov ecx, dword [0x521798]
mov al, byte [ecx + 0x515aff]
test al, al
je 0x4db5ac
mov edx, dword [0x521798]
cmp al, 0x20
je 0x4db5ac
inc dword [0x521798]
mov ecx, dword [0x521798]
cmp ecx, dword [0x52179c]
jl 0x4db57e
mov eax, dword [0x521798]
mov byte [eax + 0x515aff], 0
mov edx, dword [0x521794]
cmp byte [edx + 0x515aff], 0x20
jne 0x4db605
dec dword [0x521794]
cmp dword [0x521794], 0
jl 0x4db5e5
mov ecx, dword [0x521794]
cmp byte [ecx + 0x515aff], 0x20
jne 0x4db605
push 0
call sub.USER32.dll_MessageBeep
jmp 0x4dbcd0
mov eax, dword [0x521794]
cmp byte [eax + 0x515aff], 0x20
je 0x4db60e
dec dword [0x521794]
cmp dword [0x521794], 0
jg 0x4db5f1
mov edx, dword [0x521794]
cmp byte [edx + 0x515aff], 0x20
jne 0x4db623
inc dword [0x521794]
mov ecx, 0x515aff
add ecx, dword [0x521794]
push ecx
call fcn.00401318
pop ecx
cmp eax, 0x5a
jbe 0x4db646
push 0
call sub.USER32.dll_MessageBeep
jmp 0x4dbcd0
cmp byte [edi], 0
je 0x4db66c
push edi
call fcn.00401318
pop ecx
push eax
push edi
mov eax, 0x515aff
add eax, dword [0x521794]
push eax
call fcn.00401540
add esp, 0xc
test eax, eax
je 0x4db6ae
mov edx, dword [0x521798]
sub edx, dword [0x521794]
push edx
mov ecx, 0x515aff
add ecx, dword [0x521794]
push ecx
push edi
call fcn.004014f0
add esp, 0xc
mov eax, dword [0x521798]
sub eax, dword [0x521794]
mov byte [edi + eax], 0
cmp byte [edi], 0
jne 0x4db6ae
push 0
call sub.USER32.dll_MessageBeep
jmp 0x4dbcd0
mov edx, dword [0x521794]
mov byte [edx + 0x515aff], 0
mov ecx, dword [0x521798]
cmp ecx, dword [0x52179c]
jge 0x4db6d5
mov eax, dword [0x521798]
mov byte [eax + 0x515aff], 0x20
mov al, byte [edi]
cmp al, 0x24
je 0x4db6f0
cmp al, 0x25
je 0x4db6f0
cmp byte [edi], 0x23
jne 0x4db74a
cmp byte [edi + 1], 0
je 0x4db6f0
cmp byte [edi + 1], 0x20
jne 0x4db74a
push esi
push edi
mov esi, 0x515718
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0
push 0x515718
mov eax, dword [ebp + 8]
push eax
call fcn.0045c4e0
test eax, eax
je 0x4db73e
cmp byte [0x515718], 0
je 0x4db73e
mov dword [esi], 0x515718
jmp 0x4dbbb4
push 0
call sub.USER32.dll_MessageBeep
jmp 0x4dbcd0
cmp byte [edi], 0x23
jne 0x4db81c
cmp byte [edi + 1], 0
je 0x4db81c
mov edx, dword [0x5217c8]
mov dword [0x5217c4], edx
mov ecx, dword [0x5217c4]
mov dword [ebx], ecx
mov eax, dword [ebx]
push eax
push 0x4fce4f
push 0x5217b4
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 0x4f2218
push 0x3e7
push 0x515718
push 0x4fce5e
push 0x5217b4
push 0x4fce54
call sub.KERNEL32.dll_GetPrivateProfileStringA
cmp byte [0x515718], 0
je 0x4db80c
push 0x20
push 0x515718
call fcn.00401278
add esp, 8
mov dword [esi], eax
cmp dword [esi], 0
je 0x4db7cd
mov edx, dword [esi]
mov byte [edx], 0
push edi
call fcn.00401318
pop ecx
push eax
push 0x515718
push edi
call fcn.00401540
add esp, 0xc
test eax, eax
jne 0x4db7fb
mov ecx, dword [ebx]
inc ecx
mov dword [0x5217c8], ecx
mov dword [esi], 0x515718
jmp 0x4dbbb4
inc dword [ebx]
mov eax, dword [ebx]
cmp eax, dword [0x5217c8]
je 0x4db81c
jmp 0x4db771
xor eax, eax
mov dword [ebx], eax
cmp eax, dword [0x5217c8]
jne 0x4db771
mov edx, dword [0x521788]
cmp dword [edx + 0x5d4], 0
je 0x4db85f
mov ecx, dword [0x521788]
cmp byte [ecx + 0x4cc], 1
je 0x4dbaca
mov eax, dword [0x521788]
cmp byte [eax + 0x4cc], 9
jne 0x4db85f
mov edx, dword [0x521788]
cmp byte [edx + 0x4cd], 2
je 0x4dbaca
mov ecx, dword [0x521788]
cmp byte [ecx + 0x4cc], 2
jne 0x4db921
mov eax, dword [0x521788]
cmp byte [eax + 0x4cd], 2
jne 0x4db921
cmp dword [0x4fcdb0], 0
je 0x4db921
mov ebx, dword [0x4fcdb0]
test ebx, ebx
je 0x4db8af
cmp dword [ebx + 0x18], 1
jne 0x4db8a8
xor eax, eax
mov dword [ebx + 0x18], eax
jmp 0x4db8af
mov ebx, dword [ebx + 0x30]
test ebx, ebx
jne 0x4db89b
test ebx, ebx
jne 0x4db8bc
mov edx, dword [0x4fcdb0]
mov ebx, dword [edx + 0x34]
mov dword [ebx + 0x18], 1
test ebx, ebx
je 0x4db921
push edi
call fcn.00401318
pop ecx
push eax
mov eax, dword [ebx]
push eax
push edi
call fcn.00401540
add esp, 0xc
test eax, eax
jne 0x4db912
mov edx, dword [ebx]
push esi
mov esi, 0x515718
mov edi, edx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov dword [esi], 0x515718
jmp 0x4dbbb4
cmp ebx, dword [0x4fcdb0]
je 0x4db921
mov ebx, dword [ebx + 0x34]
test ebx, ebx
jne 0x4db8c7
mov ebx, dword [0x521788]
cmp byte [ebx + 0x4cc], 2
jne 0x4db9c6
cmp byte [ebx + 0x4cd], 2
je 0x4db9c6
cmp byte [ebx + 0x4cd], 1
jne 0x4db951
add ebx, 4
mov dword [esi], ebx
jmp 0x4db974
push 0x20
add ebx, 4
push ebx
call fcn.00401278
add esp, 8
mov dword [esi], eax
cmp dword [esi], 0
jne 0x4db972
mov eax, dword [0x521788]
add eax, 4
mov dword [esi], eax
jmp 0x4db974
inc dword [esi]
mov edx, dword [esi]
cmp byte [edx], 0
je 0x4db9c6
push edi
call fcn.00401318
pop ecx
push eax
mov ecx, dword [esi]
push ecx
push edi
call fcn.00401540
add esp, 0xc
test eax, eax
jne 0x4db9c6
mov eax, dword [esi]
push esi
mov esi, 0x515718
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov dword [esi], 0x515718
jmp 0x4dbbb4
mov eax, dword [0x521788]
cmp byte [eax + 0x4cc], 0
je 0x4db9e7
mov edx, dword [0x521788]
cmp byte [edx + 0x4cc], 2
jne 0x4dbabc
mov ecx, dword [0x4fce20]
mov dword [0x5217d0], ecx
cmp dword [0x5217d0], 0
je 0x4dba0b
mov eax, dword [0x5217d0]
push eax
call fcn.004ab51c
test eax, eax
jne 0x4dba17
mov edx, dword [0x4faa30]
mov dword [0x5217d0], edx
mov ecx, dword [0x5217d0]
mov dword [0x5217cc], ecx
jmp 0x4dbaae
push edi
call fcn.00401318
pop ecx
push eax
push ebx
push edi
call fcn.00401540
add esp, 0xc
test eax, eax
jne 0x4dba80
mov ebx, dword [0x5217cc]
mov eax, dword [ebx + 0x2a8]
mov dword [0x4fce20], eax
push esi
mov esi, 0x515718
mov edi, ebx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov dword [esi], 0x515718
jmp 0x4dbbb4
mov eax, dword [0x5217cc]
mov eax, dword [eax + 0x2a8]
mov dword [0x5217cc], eax
test eax, eax
jne 0x4dbaa0
mov edx, dword [0x4faa30]
mov dword [0x5217cc], edx
mov ecx, dword [0x5217cc]
cmp ecx, dword [0x5217d0]
je 0x4dbabc
mov ebx, dword [0x5217cc]
test ebx, ebx
jne 0x4dba28
mov eax, dword [ebp + 8]
push eax
call fcn.004db210
jmp 0x4dbcd0
xor edx, edx
mov dword [0x5217a0], edx
cmp dword [0x4fce1c], 0xffffffff
jne 0x4dbae7
mov dword [0x5217a8], 1
jmp 0x4dbaef
xor ecx, ecx
mov dword [0x5217a8], ecx
push 0
push 0
push 0x18b
mov eax, dword [0x521788]
mov edx, dword [eax + 0x5d4]
push edx
call sub.USER32.dll_SendMessageA
mov dword [0x52178c], eax
cmp dword [0x52178c], 0xffffffff
je 0x4dbcac
cmp dword [0x52178c], 0
jle 0x4dbcac
xor ecx, ecx
mov dword [0x52179c], ecx
jmp 0x4dbc9a
push 0x515718
push ebx
push 0x189
mov eax, dword [0x521788]
mov edx, dword [eax + 0x5d4]
push edx
call sub.USER32.dll_SendMessageA
mov dword [0x521790], eax
mov eax, dword [0x521790]
cmp eax, 0xffffffff
je 0x4dbc94
test eax, eax
jle 0x4dbc94
mov dword [esi], 0x515718
jmp 0x4dbb76
inc dword [esi]
mov edx, dword [esi]
push edx
call fcn.0048b548
test al, al
jne 0x4dbb74
mov ebx, dword [esi]
cmp byte [ebx], 0
je 0x4dbc94
cmp dword [0x5217a8], 0
je 0x4dbc7c
push edi
call fcn.00401318
pop ecx
push eax
push ebx
push edi
call fcn.00401540
add esp, 0xc
test eax, eax
jne 0x4dbc94
mov eax, dword [0x52179c]
mov dword [0x4fce1c], eax
mov edx, dword [esi]
push edx
call fcn.00401318
pop ecx
add eax, dword [0x521794]
mov dword [0x521794], eax
mov ecx, dword [0x521798]
cmp byte [ecx + 0x515aff], 0
je 0x4dbbfa
mov eax, 0x515aff
add eax, dword [0x521798]
push eax
push 0x515718
call fcn.0040123c
add esp, 8
mov edx, dword [esi]
push edx
push 0x515aff
call fcn.0040123c
add esp, 8
push 0
push 0
push 0xb
mov ecx, dword [0x5217b0]
push ecx
call sub.USER32.dll_SendMessageA
push 0x515aff
push 0
push 0xc
mov eax, dword [0x5217b0]
push eax
call sub.USER32.dll_SendMessageA
push 0
push 1
push 0xb
mov edx, dword [0x5217b0]
push edx
call sub.USER32.dll_SendMessageA
mov eax, dword [0x521794]
push eax
push eax
push 0xb1
mov edx, dword [0x5217b0]
push edx
call sub.USER32.dll_SendMessageA
push 0
push 0
push 0xb7
mov ecx, dword [0x5217b0]
push ecx
call sub.USER32.dll_SendMessageA
mov eax, dword [0x5217b0]
push eax
call sub.USER32.dll_UpdateWindow
jmp 0x4dbcd0
mov edx, dword [0x4fce1c]
cmp edx, dword [0x52179c]
jne 0x4dbc94
mov dword [0x5217a8], 1
inc dword [0x52179c]
mov ebx, dword [0x52179c]
cmp ebx, dword [0x52178c]
jl 0x4dbb35
mov dword [0x4fce1c], 0xffffffff
inc dword [0x5217a0]
cmp dword [0x5217a0], 2
jl 0x4dbad2
push 0
call sub.USER32.dll_MessageBeep
pop edi
pop esi
pop ebx
pop ebp
ret 4