Function at 0x1002ef20
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 0x1002ef87
or ecx, 2
movzx ecx, cx
jmp 0x1002ef8d
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 0x1002f15c
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 0x1002f014
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
mov eax, dword [ebp - 0x20a]
test ax, ax
jne 0x1002f05e
xor eax, eax
cmp word [ebp - 0x20c], 0x22
setne al
test eax, eax
jne 0x1002f107
xor eax, eax
push 0x104
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push 0xaec8
push dword [0x10043518]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebp - 0x414], 0
jne 0x1002f29b
push 0x104
lea eax, [ebp - 0x414]
push eax
push 0xaec8
jmp 0x1002f284
cmp word [ebp - 0x20c], 0x5c
jne 0x1002f014
cmp ax, 0x64
jne 0x1002f087
movzx eax, word [ebp - 0x208]
neg eax
sbb eax, eax
and eax, 0xb
dec eax
movzx eax, ax
test ax, ax
jle 0x1002f014
jmp 0x1002f0a0
cmp ax, 0x78
jne 0x1002f014
cmp word [ebp - 0x208], 0
je 0x1002f014
mov eax, 0x10
movzx eax, ax
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 0x1002f0fb
jmp 0x1002f0d0
cmp dx, 0x20
je 0x1002f0dc
cmp dx, 9
jne 0x1002f0f1
add ecx, 2
mov dword [ebp - 0x418], ecx
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x1002f0d0
jmp 0x1002f0fb
cmp word [ecx], 0
jne 0x1002f014
cmp ebx, 0xff
ja 0x1002f014
mov eax, dword [esi + 4]
test eax, eax
je 0x1002f118
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 0x1002f121
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.10032f70
mov dword [esi + 4], eax
test eax, eax
jne 0x1002f15c
mov ecx, edi
call fcn.10032980
jmp 0x1002f2ad
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 0x1002f1cb
cmp dx, 0x20
je 0x1002f1b0
cmp dx, 9
jne 0x1002f1c5
add ecx, 2
mov dword [ebp - 0x41c], ecx
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x1002f1a4
jmp 0x1002f1cb
cmp word [ecx], 0
jne 0x1002f243
test ebx, ebx
js 0x1002f243
cmp ebx, 0x7fff
jg 0x1002f243
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 0x1002f221
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.1003c3b0
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.1003c3b0
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 [0x10043518]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebp - 0x414], 0
jne 0x1002f29b
push 0x104
lea eax, [ebp - 0x414]
push eax
push 0xaec9
mov esi, dword [0x1004332c]
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.1003c3b0
mov esp, ebp
pop ebp
ret 4