Function at 0x40d8d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x154
mov eax, dword [0x4203a0]
push ebx
mov dword [esp + 0x154], eax
push esi
push edi
xor eax, eax
mov byte [esp + 0x58], 0
mov ecx, 0x3f
lea edi, [esp + 0x59]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0xc]
cmp eax, 0x110
ja 0x40d9a4
je 0x40d97c
sub eax, 2
je 0x40d960
sub eax, 0xa
jne 0x40db4e
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push eax
push ecx
push 0xc
push edx
call dword [sym.imp.USER32.dll_DefWindowProcA]
mov ecx, dword [0x43e210]
push pe_nt_image_headers32
lea eax, [esp + 0x5c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
xor eax, eax
mov ecx, dword [esp + 0x15c]
call fcn.0040ddfc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.0040d0f0
xor eax, eax
mov ecx, dword [esp + 0x15c]
call fcn.0040ddfc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp + 8]
mov dword [0x43e210], edx
call fcn.0040d870
mov eax, 1
mov ecx, dword [esp + 0x15c]
call fcn.0040ddfc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp eax, 0x111
jne 0x40db4e
mov eax, dword [ebp + 0x14]
push eax
call fcn.0040cc30
add esp, 4
test eax, eax
je 0x40db44
mov esi, dword [ebp + 0x10]
mov eax, dword [0x43e20c]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
movzx ecx, si
cmp eax, ecx
je 0x40da00
mov eax, ecx
mov ecx, esi
shr ecx, 0x10
cmp cx, 0x100
mov dword [0x43e20c], eax
jne 0x40da00
mov ebx, dword [ebp + 8]
push eax
push ebx
call edi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [0x43e20c]
jmp 0x40da03
mov ebx, dword [ebp + 8]
shr esi, 0x10
cmp esi, 0x300
jne 0x40db4e
mov ecx, dword [0x43e2a0]
test ecx, ecx
je 0x40db4e
push eax
push ebx
call edi
mov edx, eax
mov byte [esp + 0x18], 0
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
mov dword [esp + 0x14], edx
stosb byte es:[edi], al
call fcn.0040ccd0
add esp, 4
test eax, eax
je 0x40da5f
mov ecx, 0x20
xor eax, eax
mov edi, 0x43e218
rep stosd dword es:[edi], eax
jmp 0x40db19
mov eax, dword [0x43e20c]
push 0x40
lea edx, [esp + 0x1c]
push edx
push eax
push ebx
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
mov ecx, dword [0x43e20c]
push ecx
call fcn.0040d130
mov edi, eax
lea eax, [esp + 0x1c]
add esp, 4
mov dword [esp + 0xc], edi
xor edx, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40da91
sub eax, esi
mov dword [esp + 0x14], eax
je 0x40dac0
mov bl, 0x2a
cmp byte [esp + edx + 0x18], bl
jne 0x40dabd
lea eax, [esp + 0x18]
inc edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40dab0
sub eax, esi
cmp edx, eax
jb 0x40daa2
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x18]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40dac7
mov ecx, dword [edi + 0x1c]
sub eax, esi
cmp eax, ecx
jne 0x40dadb
cmp edx, ecx
jae 0x40db19
mov edx, dword [esp + 0xc]
xor eax, eax
mov ecx, 0x10
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [edx + 0x1c]
mov edx, ecx
shr ecx, 2
mov eax, 0x2a2a2a2a
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [0x43e20c]
lea eax, [esp + 0x18]
push eax
push ecx
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov edx, dword [esp + 0x10]
push 0x28
push 0x28
push 0xb1
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
mov ecx, dword [esp + 0x15c]
call fcn.0040ddfc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov dword [0x43e20c], 0
mov ecx, dword [esp + 0x15c]
xor eax, eax
call fcn.0040ddfc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10