Function at 0x402d6e
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x47a4b0]
xor eax, ebp
mov dword [ebp + 0x188], eax
push ebx
push esi
mov ebx, ecx
mov ecx, dword [ebp + 0x194]
push edi
mov eax, 0xa0
cmp ecx, eax
mov edi, edx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], edi
jg 0x402e88
je 0x402e04
mov eax, ecx
dec eax
je 0x402f71
dec eax
je 0x403010
sub eax, 7
je 0x402de8
sub eax, 0x96
jne 0x403022
mov ecx, ebx
call fcn.004026d3
test eax, eax
je 0x403022
push 1
push ebx
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x403022
cmp dword [ebp + 0x198], 0
jne 0x403022
push 0x7d
push 0
push ebx
call fcn.00419be1
jmp 0x403000
mov ecx, ebx
call fcn.004024bf
push 0xaf
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov dword [ebp - 0x80], eax
push 0x80
lea eax, [ebp + 0x88]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x147
push edi
call esi
cmp eax, 0xffffffff
jne 0x402e67
lea eax, [ebp + 0x88]
push eax
push 0xffffffffffffffff
push 0x158
push edi
call esi
cmp eax, 0xffffffff
jne 0x402e67
xor eax, eax
jmp 0x402e6a
xor eax, eax
inc eax
push ebx
mov ebx, eax
call fcn.0040238a
xor eax, eax
cmp dword [ebp - 0x80], eax
setne al
push eax
push dword [ebp - 0x7c]
call fcn.004023ec
jmp 0x403022
mov eax, ecx
sub eax, 0xa1
je 0x40301b
sub eax, 0xe
je 0x402eae
sub eax, 0x5b
jne 0x403022
mov dword [0x47a4d0], edi
jmp 0x403022
cmp dword [ebp + 0x198], 1
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
jne 0x402f14
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
push 0x147
push 0xaf
push ebx
call edi
push eax
call esi
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
push ebx
mov ebx, ecx
call fcn.0040238a
push 0
push 0
push 0x147
push 0xaf
push dword [ebp - 0x7c]
call edi
push eax
call esi
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
push ecx
push dword [ebp - 0x7c]
call fcn.004023ec
mov ebx, dword [ebp - 0x7c]
mov edi, dword [ebp - 0x80]
cmp dword [ebp + 0x198], 5
jne 0x402f64
push 0x80
lea eax, [ebp + 0x108]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ebx, [ebp + 0x108]
call fcn.0040234d
push eax
push dword [ebp - 0x7c]
call fcn.004023ec
mov eax, ebx
push eax
push 0xffffffffffffffff
push 0x158
push edi
call esi
push dword [ebp - 0x7c]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
call fcn.0040238a
mov ebx, dword [ebp - 0x7c]
cmp dword [ebp + 0x198], 2
jne 0x403022
lea eax, [ebp - 0x78]
push 0x469f6a
push eax
call sub.MSVCR80.dll_strcpy
pop ecx
pop ecx
push 0x100
lea eax, [ebp - 0x78]
push eax
push dword [0x47a4d0]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x274a
call fcn.0046708d
push eax
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.MSVCR80.dll__stricmp]
test eax, eax
pop ecx
pop ecx
jne 0x403005
push dword [0x47a4d0]
call dword [sym.imp.FcCtrl4.dll_Document_GetCaretRecord]
push 1
push eax
push dword [0x47a4d0]
call dword [sym.imp.FcCtrl4.dll_Document_GetBinderPage]
push eax
call dword [sym.imp.NfoMgr4.dll_Nfo_LockPageRecords]
test eax, eax
je 0x403005
call dword [sym.imp.NfoMgr4.dll_Nfo_GetErrorA]
push eax
push 0x284b
call fcn.0046708d
push eax
call fcn.00460601
pop ecx
pop ecx
push 0
push 0x10
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call fcn.00453880
add esp, 0xc
jmp 0x403022
mov ecx, ebx
call fcn.004028e3
test eax, eax
je 0x403022
push dword [ebp + 0x194]
jmp 0x402ddc
mov edi, ebx
call fcn.004025e9
mov ecx, dword [ebp + 0x188]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00456f61
add ebp, 0x18c
leave
ret 8