Function at 0x1002de40
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x1003f6e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x8e
push ebx
mov edi, edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x92
push ebx
mov dword [ebp - 0x828], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
mov dword [ebp - 0x830], eax
mov eax, dword [esi + 4]
mov esi, dword [ebp - 0x828]
push 0x188
push esi
mov dword [ebp - 0x834], eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x1002e0e5
push 0
push eax
push 0x199
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
lea eax, [ebp - 0x414]
push 0x104
push eax
push 0x95
push ebx
mov dword [ebp - 0x828], esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp - 0x414]
test cx, cx
je 0x1002e11a
cmp cx, 0x20
je 0x1002e11a
cmp cx, 9
je 0x1002e11a
push 0x107
push ecx
call dword [sym.imp.msvcrt.dll_iswctype]
add esp, 8
test eax, eax
je 0x1002e11a
mov esi, dword [esi + 0x10]
test esi, esi
je 0x1002df48
cmp esi, edi
je 0x1002df41
push dword [esi + 0xc]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x1002e080
mov esi, dword [esi + 4]
test esi, esi
jne 0x1002df22
mov esi, dword [ebp - 0x830]
push 0
push 0
push 0x147
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x1002e184
push 0
push eax
push 0x150
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
movzx eax, ax
push 0x104
mov dword [ebp - 0x828], eax
lea eax, [ebp - 0x61c]
push eax
push 0x96
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xa
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.msvcrt.dll_wcstol]
mov esi, eax
add esp, 0xc
mov eax, 0xaea7
cmp word [ebp - 0x828], ax
je 0x1002dfd3
mov ecx, dword [edi + 8]
cmp dword [ecx + 8], 0xaea3
jne 0x1002e037
mov ecx, dword [ebp - 0x82c]
movzx edx, word [ecx]
test dx, dx
je 0x1002e00a
push 4
push edx
call dword [sym.imp.msvcrt.dll_iswctype]
mov ecx, dword [ebp - 0x82c]
add esp, 8
test eax, eax
je 0x1002e00a
add ecx, 2
mov dword [ebp - 0x82c], ecx
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x1002dfe1
cmp word [ecx], 0
mov eax, dword [ebp - 0x828]
movzx eax, ax
jne 0x1002e0fd
cmp esi, dword [eax*8 + 0xffe99f8]
jl 0x1002e0fd
cmp esi, dword [eax*8 + 0xffe99fc]
jg 0x1002e0fd
lea edx, [ebp - 0x414]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1002e040
sub edx, ecx
mov ecx, dword [ebp - 0x834]
sar edx, 1
lea eax, [ecx + 0x6c]
mov ecx, dword [ecx + 0x7c]
push eax
push edx
lea edx, [ebp - 0x414]
call fcn.10055e2d
mov edx, eax
mov dword [ebp - 0x82c], edx
test edx, edx
jne 0x1002e0be
mov ecx, ebx
call fcn.100314b0
jmp 0x1002e184
push 0x104
lea edx, [ebp - 0x824]
mov ecx, 0xaec6
call fcn.10032350
mov eax, dword [ebp - 0x828]
push dword [eax]
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x10
jmp 0x1002e172
mov eax, dword [edi + 0xc]
test eax, eax
je 0x1002e0d5
push eax
call dword [sym.imp.msvcrt.dll_free]
mov edx, dword [ebp - 0x82c]
add esp, 4
mov eax, dword [ebp - 0x828]
mov dword [edi + 0xc], edx
mov word [edi + 0x10], ax
mov dword [edi + 0x14], esi
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003a1d0
mov esp, ebp
pop ebp
ret 4
push 0x104
lea edx, [ebp - 0x61c]
mov ecx, 0xaec7
call fcn.10032350
lea eax, [ebp - 0x61c]
jmp 0x1002e178
xor eax, eax
push 0x104
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push 0xaec5
push dword [0x10041578]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebp - 0x20c], 0
jne 0x1002e172
mov esi, dword [0x1004138c]
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0xaec5
mov ecx, esi
call dword [0x10042350]
call esi
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x20c]
push 0x30
push 0
push eax
push ebx
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