Function at 0x401860
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x9ec60
call fcn.004022d0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x9ec70]
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ed
push esi
call edi
mov ebx, eax
mov eax, dword [esp + 0x9ec78]
add eax, 0xfffffc13
cmp eax, 0x15
ja case.0x4018a2.1014
xor ecx, ecx
mov cl, byte [eax + 0x402254]
jmp dword [ecx*4 + 0x40222c]
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x18], 0x4c
mov dword [esp + 0x34], 0x404314
mov byte [0x404314], al
mov dword [esp + 0x38], 0x1fbd0
mov dword [esp + 0x24], 0x4041d0
mov dword [esp + 0x30], 1
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x4c], 0x81a00
call sub.comdlg32.dll_GetOpenFileNameA
test eax, eax
je case.0x4018a2.1014
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x160]
and eax, 0xffff
push eax
push 0x404314
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0x160]
and edx, 0xffff
push eax
mov byte [esp + edx + 0x164], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 0x15f], 0x5c
je 0x401967
lea ecx, [esp + 0x160]
push 0x4041cc
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov esi, dword [esp + 0x4c]
mov ecx, 0x7ef4
and esi, 0xffff
xor eax, eax
add esi, 0x404314
lea edi, [esp + 0x5f4d0]
rep stosd dword es:[edi], eax
cmp byte [esi], 0
je case.0x4018a2.1014
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [esp + 0x160]
lea eax, [esp + 0x5f4d0]
push edx
push 0x4041c8
push eax
call edi
push esi
lea ecx, [esp + 0x1fd40]
push 0x4041c8
push ecx
call edi
lea edx, [esp + 0x1fd48]
lea eax, [esp + 0x5f4e8]
push edx
push eax
lea ecx, [esp + 0x7f0c0]
push str._s_s
push ecx
call edi
add esp, 0x28
push esi
push 0x4041c8
push 0
push 0
push 0x18b
push ebx
call ebp
mov edx, eax
shl edx, 6
add edx, eax
lea eax, [edx*4 + 0x423ee4]
push eax
call edi
add esp, 0xc
push esi
push 0
push 0
push 0x18b
push ebx
call ebp
inc eax
lea ecx, [esp + 0x3f904]
push eax
push str._d.__s
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x3f900]
push edx
push 0
push 0
push 0x18b
push ebx
call ebp
push eax
push 0x181
push ebx
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x40199c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9ec60
ret
mov eax, dword [esp + 0x9ec80]
sub eax, 2
jne case.0x4018a2.1014
push 0x3ef
push esi
call edi
push 0x404060
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edi, dword [sym.imp.WINMM.dll_mciSendStringA]
xor ebp, ebp
push ebp
push ebp
push ebp
push str.close_all
call edi
push ebp
push ebp
push 0x188
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, eax
push 0x104
shl ecx, 6
add ecx, eax
push 0x443ef4
mov dword [0x404010], eax
lea edx, [ecx*4 + 0x423ee4]
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push 0x443ef4
push str.play__s
push 0x443de4
call ebx
add esp, 0xc
push ebp
push ebp
push ebp
push 0x443de4
call edi
cmp dword [0x404210], 1
jne 0x401b1b
push 0x443ef4
push str.setaudio__s_off
push 0x443de4
call ebx
add esp, 0xc
push ebp
push ebp
push ebp
push 0x443de4
call edi
mov eax, dword [0x404010]
push 0x104
mov ecx, eax
push 0x443bc4
shl ecx, 6
add ecx, eax
lea edx, [ecx*4 + 0x423ee4]
push edx
call sub.comdlg32.dll_GetFileTitleA
push 0x443bc4
push 0x3f8
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push 0x401700
push ebp
push 1
push esi
call edi
push 0x401500
push 0x3e8
push ebp
push esi
call edi
pop edi
mov dword [0x443ff8], ebp
mov dword [0x443ffc], ebp
pop esi
pop ebp
pop ebx
add esp, 0x9ec60
ret
push 0x3ef
push esi
call edi
push 0x100
push 0x404214
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebp, 0x404060
mov edi, 0x404214
mov cl, byte [edi]
mov dl, byte [ebp]
mov al, cl
cmp cl, dl
jne 0x401bd5
test al, al
je 0x401bd1
mov dl, byte [edi + 1]
mov cl, byte [ebp + 1]
mov al, dl
cmp dl, cl
jne 0x401bd5
add edi, 2
add ebp, 2
test al, al
jne 0x401bac
xor eax, eax
jmp 0x401bda
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401c2c
push 0x443ef4
push str.pause__s
push 0x443bc4
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0
push 0
push 0x443bc4
call dword [sym.imp.WINMM.dll_mciSendStringA]
mov eax, dword [esp + 0x10]
push 0x4041a4
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
pop ebp
mov dword [0x443ffc], 1
pop ebx
add esp, 0x9ec60
ret
push 0
push 0
push 0x18b
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jne 0x401c5e
push 0x30
push 0x404198
push 0x40418c
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9ec60
ret
mov eax, dword [0x404010]
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov ecx, eax
push 0x104
shl ecx, 6
add ecx, eax
push 0x443ef4
lea edx, [ecx*4 + 0x423ee4]
push edx
call edi
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push 0x443ef4
push str.status__s_mode
push 0x443de4
call ebp
add esp, 0xc
lea eax, [esp + 0x60]
push 0
push 0x100
push eax
push 0x443de4
call dword [sym.imp.WINMM.dll_mciSendStringA]
lea ecx, [esp + 0x60]
push str.paused
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x401cea
push 0
push 0
push 0x188
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x404010], eax
mov dword [0x443ffc], 1
jmp 0x401cef
mov eax, dword [0x404010]
cmp eax, 0xffffffff
je case.0x4018a2.1014
mov edx, eax
push 0x104
shl edx, 6
add edx, eax
push 0x443ef4
lea eax, [edx*4 + 0x423ee4]
push eax
call edi
push 0x443ef4
push str.play__s
push 0x443de4
call ebp
add esp, 0xc
xor ebx, ebx
push ebx
push ebx
push ebx
push 0x443de4
call dword [sym.imp.WINMM.dll_mciSendStringA]
mov eax, dword [0x404010]
push 0x104
mov ecx, eax
push 0x443bc4
shl ecx, 6
add ecx, eax
lea edx, [ecx*4 + 0x423ee4]
push edx
call sub.comdlg32.dll_GetFileTitleA
push 0x443bc4
push 0x3f8
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push 0x401700
push ebx
push 1
push esi
call edi
push 0x401500
push 0x3e8
push ebx
push esi
call edi
mov eax, dword [esp + 0x10]
push 0x404060
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
mov dword [0x443ff8], ebx
mov dword [0x443ffc], ebx
pop ebp
pop ebx
add esp, 0x9ec60
ret
push 0
push esi
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [0x404010]
push 0x104
mov ecx, eax
push 0x443ef4
shl ecx, 6
add ecx, eax
lea edx, [ecx*4 + 0x423ee4]
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0x443ef4
push str.stop__s
push 0x443cd4
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0
push 0
push 0x443cd4
call dword [sym.imp.WINMM.dll_mciSendStringA]
push 0x3ef
push esi
call edi
push 0x4041a4
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
mov eax, 1
pop esi
pop ebp
mov dword [0x443ff8], eax
mov dword [0x443ffc], eax
pop ebx
add esp, 0x9ec60
ret
push 0x21
push str.music_box
push 0x404158
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
jne case.0x4018a2.1014
push 0
push 0
push 0
push str.close_all
call dword [sym.imp.WINMM.dll_mciSendStringA]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x18b
push ebx
call ebp
inc eax
test eax, eax
jle 0x401e94
mov dword [esp + 0x10], eax
push 0
push 0
push 0x182
push ebx
call ebp
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x401e7d
push 0
push esi
mov dword [0x404010], 0x1f4
call dword [sym.imp.USER32.dll_KillTimer]
push 0x3ef
push esi
call edi
push 0x4041a4
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
mov eax, 1
pop esi
pop ebp
mov dword [0x443ff8], eax
mov dword [0x443ffc], eax
pop ebx
add esp, 0x9ec60
ret
push 0x3f5
push esi
call edi
push 0
push 0
push pe_nt_image_headers32
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x404210], eax
mov eax, dword [0x404010]
mov ecx, eax
push 0x104
shl ecx, 6
add ecx, eax
push 0x443ef4
lea edx, [ecx*4 + 0x423ee4]
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov eax, dword [0x404210]
push 0x443ef4
cmp eax, 1
jne 0x401f2c
push str.setaudio__s_off
jmp 0x401f31
push str.setaudio__s_on
push 0x443de4
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0
push 0
push 0x443de4
call dword [sym.imp.WINMM.dll_mciSendStringA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9ec60
ret
mov eax, dword [0x443ff8]
test eax, eax
jne case.0x4018a2.1014
mov ebp, dword [sym.imp.WINMM.dll_mciSendStringA]
push 0
push 0
push 0
push str.close_all
call ebp
push 0
push 0
push 0x18b
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x404010]
test ecx, ecx
jne 0x401f9a
lea ecx, [eax - 1]
jmp 0x401f9b
dec ecx
push 0
push ecx
push 0x186
push ebx
mov dword [0x404010], ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x404010]
push 0x104
mov ecx, eax
push 0x443ef4
shl ecx, 6
add ecx, eax
lea edx, [ecx*4 + 0x423ee4]
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0x443ef4
push str.play__s
push 0x443de4
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0
push 0
push 0x443de4
call ebp
mov eax, dword [0x404010]
push 0x104
mov ecx, eax
push 0x443bc4
shl ecx, 6
add ecx, eax
lea edx, [ecx*4 + 0x423ee4]
push edx
call sub.comdlg32.dll_GetFileTitleA
push 0x443bc4
push 0x3f8
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0x3ef
push esi
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9ec60
ret
mov eax, dword [0x443ff8]
test eax, eax
jne case.0x4018a2.1014
mov ebp, dword [sym.imp.WINMM.dll_mciSendStringA]
push 0
push 0
push 0
push str.close_all
call ebp
push 0
push 0
push 0x18b
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [eax - 1]
mov eax, dword [0x404010]
cmp eax, ecx
jne 0x402080
xor eax, eax
jmp 0x402081
inc eax
push 0
push eax
push 0x186
push ebx
mov dword [0x404010], eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x404010]
push 0x104
mov edx, eax
push 0x443ef4
shl edx, 6
add edx, eax
lea eax, [edx*4 + 0x423ee4]
push eax
jmp 0x401fce
push 0x21
push str.music_box
push 0x404138
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0
push 0x18b
push ebx
mov ebp, eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp ebp, 1
mov dword [esp + 0x10], eax
jne case.0x4018a2.1014
push 0
push 0
push 0x188
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40211f
push 0x30
push str.music_box
push 0x404124
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9ec60
ret
cmp ebp, dword [0x404010]
jne 0x402182
push 0x443ef4
push str.stop__s
push 0x443de4
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0
push 0
push 0x443de4
call dword [sym.imp.WINMM.dll_mciSendStringA]
push 0x3ef
push esi
call edi
push 0x4041a4
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0
push esi
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, 1
mov dword [0x443ff8], eax
mov dword [0x443ffc], eax
cmp ebp, dword [0x404010]
jge 0x40218a
dec dword [0x404010]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x4021a7
mov esi, edi
push 0
push 0
push 0x182
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
dec esi
jne 0x402194
dec edi
cmp ebp, edi
mov dword [esp + 0x10], edi
jge 0x4021d9
mov eax, ebp
shl eax, 6
add eax, ebp
sub edi, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [eax*4 + 0x423ee4]
lea esi, [eax + 0x104]
push esi
push eax
call ebp
dec edi
mov eax, esi
jne 0x4021c6
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
jle case.0x4018a2.1014
mov ebp, 0x423ee4
lea edi, [esi + 1]
push ebp
push edi
push str._d.__s
push 0x443ab4
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x443ab4
push esi
push 0x181
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x10]
mov esi, edi
add ebp, 0x104
cmp esi, eax
jl 0x4021e4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9ec60
ret