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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov edi, dword fs:[0x18]
sub esp, 0x44
mov eax, dword [0x40b02c]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowTextLengthW]
lea esi, [eax + 1]
sub esp, 4
lea eax, [esi + esi]
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 0x403e08
mov ebx, eax
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov eax, dword [0x40b02c]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowTextW]
mov esi, 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 eax, dword [0x40b02c]
mov dword [esp], eax
call esi
mov dword [ebp - 0x20], eax
mov eax, dword [0x40b02c]
sub esp, 0x10
mov dword [esp], eax
call dword [sym.imp.user32.dll_DestroyWindow]
lea eax, [ebp - 0x1c]
sub esp, 4
mov dword [esp + 4], eax
mov eax, dword [0x40b024]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetClientRect]
sub esp, 8
cmp dword [0x40b09c], 1
mov dword [esp + 0x2c], 0
mov ecx, dword [0x40b020]
sbb eax, eax
mov dword [esp + 0x24], 0
and eax, 0xffefff80
mov dword [esp + 0x28], ecx
mov ecx, dword [0x40b024]
add eax, 0x50b000c4
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp - 0x10]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp - 0x14]
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], global_editW.0
mov dword [esp], 0x200
call dword [sym.imp.user32.dll_CreateWindowExW]
sub esp, 0x30
mov dword [0x40b02c], eax
mov dword [esp + 0xc], 0
mov ecx, dword [0x40b030]
mov dword [esp + 4], 0x30
mov dword [esp + 8], ecx
mov dword [esp], eax
call esi
sub esp, 0x10
mov dword [esp + 4], ebx
mov eax, dword [0x40b02c]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetWindowTextW]
sub esp, 8
mov dword [esp + 0xc], 0
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], 0xb9
mov dword [esp + 8], edx
mov eax, dword [0x40b02c]
mov dword [esp], eax
call esi
mov eax, dword [0x40b02c]
sub esp, 0x10
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetFocus]
sub esp, 4
mov dword [esp + 8], ebx
xor ebx, ebx
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 [0x40b09c]
sub esp, 0xc
test eax, eax
mov eax, dword [0x40b024]
sete bl
mov dword [0x40b09c], 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]
sub esp, 0xc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], dbg.EDIT_CallBackProc@24
mov eax, dword [0x40b02c]
mov dword [esp], eax
call dword [sym.imp.comctl32.dll_SetWindowSubclass]
mov eax, dword [ebp - 0x10]
sub esp, 0x10
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dbg.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 dbg.ShowLastError