Function at 0x1002dee0
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x1003f6e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [eax + 4]
mov edi, ecx
push 0x90
push edi
mov esi, edx
mov dword [ebp - 0x420], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
or word [esi + 0xe], 1
mov ebx, eax
push 0
push 0
push pe_nt_image_headers32
push 0x93
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
movzx ecx, word [esi + 0xe]
test eax, eax
je 0x1002df47
or ecx, 2
movzx ecx, cx
jmp 0x1002df4d
and ecx, 0xfffd
push 0
push 0
push 0x147
push ebx
mov word [esi + 0xe], cx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push eax
push 0x150
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi + 8], eax
cmp eax, 0xaea2
jne 0x1002e11c
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x94
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x20c], 0
je 0x1002dfd4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
mov eax, dword [ebp - 0x20a]
test ax, ax
jne 0x1002e01e
xor eax, eax
cmp word [ebp - 0x20c], 0x22
setne al
test eax, eax
jne 0x1002e0c7
xor eax, eax
push 0x104
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push 0xaec8
push dword [0x10041578]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebp - 0x414], 0
jne 0x1002e257
push 0x104
lea eax, [ebp - 0x414]
push eax
push 0xaec8
jmp 0x1002e240
cmp word [ebp - 0x20c], 0x5c
jne 0x1002dfd4
cmp ax, 0x64
jne 0x1002e047
movzx eax, word [ebp - 0x208]
neg eax
sbb eax, eax
and eax, 0xb
dec eax
movzx eax, ax
test ax, ax
jle 0x1002dfd4
jmp 0x1002e060
cmp ax, 0x78
jne 0x1002dfd4
cmp word [ebp - 0x208], 0
je 0x1002dfd4
mov eax, 0x10
cwde
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.msvcrt.dll_wcstol]
mov ecx, dword [ebp - 0x418]
add esp, 0xc
mov ebx, eax
movzx edx, word [ecx]
test dx, dx
je 0x1002e0bb
lea esp, [esp]
cmp dx, 0x20
je 0x1002e09c
cmp dx, 9
jne 0x1002e0b1
add ecx, 2
mov dword [ebp - 0x418], ecx
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x1002e090
jmp 0x1002e0bb
cmp word [ecx], 0
jne 0x1002dfd4
cmp ebx, 0xff
ja 0x1002dfd4
mov eax, dword [esi + 4]
test eax, eax
je 0x1002e0d8
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
lea edx, [ebp - 0x20c]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1002e0e1
sub edx, ecx
mov ecx, dword [ebp - 0x420]
sar edx, 1
lea eax, [ecx + 0x6c]
mov ecx, dword [ecx + 0x7c]
push eax
push edx
lea edx, [ebp - 0x20c]
call fcn.10032020
mov dword [esi + 4], eax
test eax, eax
jne 0x1002e11c
mov ecx, edi
call fcn.10031a50
jmp 0x1002e269
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x81
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xa
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcstol]
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
mov ebx, eax
movzx edx, word [ecx]
test dx, dx
je 0x1002e18b
cmp dx, 0x20
je 0x1002e170
cmp dx, 9
jne 0x1002e185
add ecx, 2
mov dword [ebp - 0x41c], ecx
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x1002e164
jmp 0x1002e18b
cmp word [ecx], 0
jne 0x1002e1ff
cmp ebx, 0x7fff
ja 0x1002e1ff
push 0
push 0
push pe_nt_image_headers32
push 0x9c
push edi
mov word [esi + 0xc], bx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
movzx ecx, word [esi + 0xe]
test eax, eax
je 0x1002e1dd
or ecx, 4
mov eax, 1
movzx ecx, cx
pop edi
mov word [esi + 0xe], cx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003a750
mov esp, ebp
pop ebp
ret 4
and ecx, 0xfffb
mov eax, 1
pop edi
mov word [esi + 0xe], cx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003a750
mov esp, ebp
pop ebp
ret 4
xor eax, eax
push 0x104
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push 0xaec9
push dword [0x10041578]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebp - 0x414], 0
jne 0x1002e257
push 0x104
lea eax, [ebp - 0x414]
push eax
push 0xaec9
mov esi, dword [0x1004138c]
mov ecx, esi
call dword [0x10042350]
call esi
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x30
push 0
lea eax, [ebp - 0x414]
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003a750
mov esp, ebp
pop ebp
ret 4