Function at 0x4014d0
Capabilities:
Get graphical window text
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov edi, dword fs:[0x18]
sub esp, 0x5c
mov eax, dword [0x40800c]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowTextLengthW]
lea ebx, [eax + 1]
sub esp, 4
lea eax, [ebx + ebx]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x401718
mov esi, eax
mov dword [esp + 4], eax
mov eax, dword [0x40800c]
mov dword [esp + 8], ebx
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowTextW]
mov eax, dword [0x40800c]
mov ebx, dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0xc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb8
mov dword [esp], eax
call ebx
mov dword [ebp - 0x2c], eax
mov eax, dword [0x40800c]
sub esp, 0x10
mov dword [esp], eax
call dword [sym.imp.user32.dll_DestroyWindow]
lea eax, [ebp - 0x28]
sub esp, 4
mov dword [esp + 4], eax
mov eax, dword [0x408004]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetClientRect]
mov ecx, dword [section..data]
sub esp, 8
cmp dword [0x40807c], 1
mov dword [esp + 0x28], ecx
mov ecx, dword [0x408004]
sbb eax, eax
and eax, 0xffefff80
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp - 0x1c]
add eax, 0x50b000c4
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp - 0x20]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40a39c
mov dword [esp], 0x200
call dword [sym.imp.user32.dll_CreateWindowExW]
mov ecx, dword [0x408010]
sub esp, 0x30
mov dword [0x40800c], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x30
mov dword [esp], eax
call ebx
mov eax, dword [0x40800c]
sub esp, 0x10
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetWindowTextW]
mov eax, dword [ebp - 0x2c]
sub esp, 8
mov dword [esp + 8], eax
mov eax, dword [0x40800c]
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0xb9
mov dword [esp], eax
call ebx
mov eax, dword [0x40800c]
xor ebx, ebx
sub esp, 0x10
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetFocus]
sub esp, 4
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [0x40807c]
sub esp, 0xc
test eax, eax
mov eax, dword [0x408004]
sete bl
mov dword [0x40807c], ebx
shl ebx, 3
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetMenu]
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x119
mov dword [esp], eax
call dword [sym.imp.user32.dll_CheckMenuItem]
mov eax, dword [0x40800c]
sub esp, 0xc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], sym._EDIT_CallBackProc_24
mov dword [esp], eax
call dword [sym.imp.comctl32.dll_SetWindowSubclass]
mov eax, dword [ebp - 0x1c]
sub esp, 0x10
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._updateWindowSize
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp sym._ShowLastError