Function at 0x1002ea50
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x100416e4]
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 0xf0
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 0x1002eab7
or ecx, 2
movzx ecx, cx
jmp 0x1002eabd
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 0x1002ec8c
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 0x1002eb44
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
mov eax, dword [ebp - 0x20a]
test ax, ax
jne 0x1002eb8e
xor eax, eax
cmp word [ebp - 0x20c], 0x22
setne al
test eax, eax
jne 0x1002ec37
xor eax, eax
push 0x104
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push 0xaec8
push dword [0x10043578]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebp - 0x414], 0
jne 0x1002edcb
push 0x104
lea eax, [ebp - 0x414]
push eax
push 0xaec8
jmp 0x1002edb4
cmp word [ebp - 0x20c], 0x5c
jne 0x1002eb44
cmp ax, 0x64
jne 0x1002ebb7
movzx eax, word [ebp - 0x208]
neg eax
sbb eax, eax
and eax, 0xb
dec eax
movzx eax, ax
test ax, ax
jle 0x1002eb44
jmp 0x1002ebd0
cmp ax, 0x78
jne 0x1002eb44
cmp word [ebp - 0x208], 0
je 0x1002eb44
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 0x1002ec2b
lea esp, [esp]
cmp dx, 0x20
je 0x1002ec0c
cmp dx, 9
jne 0x1002ec21
add ecx, 2
mov dword [ebp - 0x418], ecx
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x1002ec00
jmp 0x1002ec2b
cmp word [ecx], 0
jne 0x1002eb44
cmp ebx, 0xff
ja 0x1002eb44
mov eax, dword [esi + 4]
test eax, eax
je 0x1002ec48
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 0x1002ec51
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.10032a00
mov dword [esi + 4], eax
test eax, eax
jne 0x1002ec8c
mov ecx, edi
call fcn.10032430
jmp 0x1002eddd
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 0x1002ecfb
cmp dx, 0x20
je 0x1002ece0
cmp dx, 9
jne 0x1002ecf5
add ecx, 2
mov dword [ebp - 0x41c], ecx
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x1002ecd4
jmp 0x1002ecfb
cmp word [ecx], 0
jne 0x1002ed73
test ebx, ebx
js 0x1002ed73
cmp ebx, 0x7fff
jg 0x1002ed73
push 0
push 0
push 0xf0
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 0x1002ed51
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.1003bd00
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.1003bd00
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 [0x10043578]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebp - 0x414], 0
jne 0x1002edcb
push 0x104
lea eax, [ebp - 0x414]
push eax
push 0xaec9
mov esi, dword [0x1004338c]
mov ecx, esi
call dword [0x10044350]
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.1003bd00
mov esp, ebp
pop ebp
ret 4