Function at 0x10018be0
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x920
mov eax, dword [0x100416e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [edx + 4]
mov eax, ecx
push esi
push edi
push 0x76
push eax
mov dword [ebp - 0x920], edx
mov dword [ebp - 0x91c], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x10018cec
push 0x12c
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xa
lea eax, [ebp - 0x918]
push eax
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.msvcrt.dll_wcstol]
mov ecx, dword [ebp - 0x918]
add esp, 0xc
mov esi, eax
movzx edx, word [ecx]
test dx, dx
je 0x10018c7f
cmp dx, 0x20
je 0x10018c64
cmp dx, 9
jne 0x10018c79
add ecx, 2
mov dword [ebp - 0x918], ecx
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x10018c58
jmp 0x10018c7f
cmp word [ecx], 0
jne 0x10018c8b
test esi, esi
jle 0x10018c8b
cmp esi, 0xffff
jle 0x10018cec
xor eax, eax
push 0x12c
mov word [ebp - 0x4b4], ax
lea eax, [ebp - 0x4b4]
push eax
push 0xae22
push dword [0x10043578]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebp - 0x4b4], 0
jne 0x10018e87
push 0x12c
lea eax, [ebp - 0x4b4]
push eax
push 0xae22
mov esi, dword [0x1004338c]
mov ecx, esi
call dword [0x10044350]
call esi
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
jmp 0x10018e87
push 0xa4
push dword [ebp - 0x91c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x10018dd4
push 0x12c
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xa
lea eax, [ebp - 0x918]
push eax
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.msvcrt.dll_wcstol]
mov ecx, dword [ebp - 0x918]
add esp, 0xc
mov esi, eax
movzx edx, word [ecx]
test dx, dx
je 0x10018d6a
cmp dx, 0x20
je 0x10018d4f
cmp dx, 9
jne 0x10018d64
add ecx, 2
mov dword [ebp - 0x918], ecx
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x10018d43
jmp 0x10018d6a
cmp word [ecx], 0
jne 0x10018d8a
test esi, esi
js 0x10018d8a
mov eax, esi
and eax, 0x800000ff
jns 0x10018d80
dec eax
or eax, 0xffffff00
add eax, 1
jne 0x10018d8a
cmp esi, 0xfffffff
jle 0x10018dd4
xor eax, eax
push 0x12c
mov word [ebp - 0x4b4], ax
lea eax, [ebp - 0x4b4]
push eax
push 0xae23
push dword [0x10043578]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebp - 0x4b4], 0
jne 0x10018e87
push 0x12c
lea eax, [ebp - 0x4b4]
push eax
push 0xae23
jmp 0x10018cd0
push 0x81
push dword [ebp - 0x91c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x10018ea6
push 0x12c
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xa
lea eax, [ebp - 0x918]
push eax
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.msvcrt.dll_wcstol]
mov ecx, dword [ebp - 0x918]
add esp, 0xc
mov esi, eax
movzx edx, word [ecx]
test dx, dx
je 0x10018e57
jmp 0x10018e30
cmp dx, 0x20
je 0x10018e3c
cmp dx, 9
jne 0x10018e51
add ecx, 2
mov dword [ebp - 0x918], ecx
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x10018e30
jmp 0x10018e57
cmp word [ecx], 0
jne 0x10018e72
test esi, esi
jle 0x10018e72
mov eax, dword [ebp - 0x920]
mov eax, dword [eax + 4]
cmp byte [eax + 0xa8], 0x16
jne 0x10018ea6
cmp esi, 0x10
jle 0x10018ea6
push 0x12c
lea edx, [ebp - 0x4b4]
mov ecx, 0xae24
call fcn.100332d0
push edi
call dword [sym.imp.USER32.dll_SetFocus]
push 0xffff0000
push 0
push 0xb1
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x10018f90
cmp byte [ebx + 0xa8], 0x19
jne 0x10018ecc
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x2c]
test ecx, ecx
jne 0x10018ee2
test eax, eax
je 0x10018ecc
mov ecx, eax
call fcn.10057f64
test eax, eax
je 0x10018f7b
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003bd00
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x10018f6b
push 0x100021ac
push ecx
call dword [sym.imp.msvcrt.dll_wcspbrk]
add esp, 8
test eax, eax
jne 0x10018f6b
mov edx, dword [ebx + 0x2c]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10018f05
sub ecx, esi
sar ecx, 1
lea eax, [ecx - 1]
test eax, eax
je 0x10018f32
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10018f20
sub ecx, esi
sar ecx, 1
dec ecx
jmp 0x10018f34
xor ecx, ecx
movzx eax, word [edx + ecx*2]
cmp eax, 0x5c
je 0x10018f4d
cmp eax, 0x2f
je 0x10018f4d
push dword [ebx + 0x10]
push edx
push 0x100021b4
jmp 0x10018f56
push dword [ebx + 0x10]
push edx
push 0x100021c0
lea eax, [ebp - 0x6bc]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x14
mov ecx, dword [ebx + 0x10]
call fcn.10032810
test eax, eax
jne 0x10018ecc
push 0x12c
lea edx, [ebp - 0x4b4]
mov ecx, 0xae13
call fcn.100332d0
mov eax, dword [ebp - 0x920]
push 0x12c
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xac]
mov esi, dword [eax + 8]
xor eax, eax
mov word [ebp - 0x25c], ax
lea eax, [ebp - 0x25c]
push eax
push esi
push dword [0x10043578]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebp - 0x25c], 0
jne 0x10018ff2
push 0x12c
lea eax, [ebp - 0x25c]
push eax
push esi
mov esi, dword [0x1004338c]
mov ecx, esi
call dword [0x10044350]
call esi
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
xor eax, eax
push 0x104
mov word [ebp - 0x6bc], ax
lea eax, [ebp - 0x6bc]
push eax
push 0xadd9
push dword [0x10043578]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebp - 0x6bc], 0
jne 0x1001904a
mov esi, dword [0x1004338c]
lea eax, [ebp - 0x6bc]
push 0x104
push eax
push 0xadd9
mov ecx, esi
call dword [0x10044350]
call esi
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x6bc]
push eax
lea eax, [ebp - 0x914]
push 0x12c
push eax
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x10
lea eax, [ebp - 0x914]
push 0x30
push eax
lea eax, [ebp - 0x4b4]
push eax
push dword [ebp - 0x91c]
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