Function at 0x1002da90
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 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 0x1002daf7
or ecx, 2
movzx ecx, cx
jmp 0x1002dafd
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 0x1002dccc
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 0x1002db84
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
mov eax, dword [ebp - 0x20a]
test ax, ax
jne 0x1002dbce
xor eax, eax
cmp word [ebp - 0x20c], 0x22
setne al
test eax, eax
jne 0x1002dc77
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 0x1002de0b
push 0x104
lea eax, [ebp - 0x414]
push eax
push 0xaec8
jmp 0x1002ddf4
cmp word [ebp - 0x20c], 0x5c
jne 0x1002db84
cmp ax, 0x64
jne 0x1002dbf7
movzx eax, word [ebp - 0x208]
neg eax
sbb eax, eax
and eax, 0xb
dec eax
movzx eax, ax
test ax, ax
jle 0x1002db84
jmp 0x1002dc10
cmp ax, 0x78
jne 0x1002db84
cmp word [ebp - 0x208], 0
je 0x1002db84
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 0x1002dc6b
lea esp, [esp]
cmp dx, 0x20
je 0x1002dc4c
cmp dx, 9
jne 0x1002dc61
add ecx, 2
mov dword [ebp - 0x418], ecx
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x1002dc40
jmp 0x1002dc6b
cmp word [ecx], 0
jne 0x1002db84
cmp ebx, 0xff
ja 0x1002db84
mov eax, dword [esi + 4]
test eax, eax
je 0x1002dc88
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 0x1002dc91
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.10031a80
mov dword [esi + 4], eax
test eax, eax
jne 0x1002dccc
mov ecx, edi
call fcn.100314b0
jmp 0x1002de1d
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 0x1002dd3b
cmp dx, 0x20
je 0x1002dd20
cmp dx, 9
jne 0x1002dd35
add ecx, 2
mov dword [ebp - 0x41c], ecx
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x1002dd14
jmp 0x1002dd3b
cmp word [ecx], 0
jne 0x1002ddb3
test ebx, ebx
js 0x1002ddb3
cmp ebx, 0x7fff
jg 0x1002ddb3
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 0x1002dd91
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.1003a1d0
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.1003a1d0
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 0x1002de0b
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.1003a1d0
mov esp, ebp
pop ebp
ret 4