Function at 0x403c00
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 [0x40c02c]
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 0x403e48
mov ebx, eax
mov dword [esp + 4], eax
mov eax, dword [0x40c02c]
mov dword [esp + 8], esi
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowTextW]
mov eax, dword [0x40c02c]
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 dword [esp], eax
call esi
mov dword [ebp - 0x20], eax
mov eax, dword [0x40c02c]
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 [0x40c024]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetClientRect]
mov ecx, dword [0x40c020]
sub esp, 8
cmp dword [0x40c09c], 1
mov dword [esp + 0x28], ecx
mov ecx, dword [0x40c024]
sbb eax, eax
and eax, 0xffefff80
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp - 0x10]
add eax, 0x50b000c4
mov dword [esp + 0x24], 0
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], 0x40a0d0
mov dword [esp], 0x200
call dword [sym.imp.user32.dll_CreateWindowExW]
mov ecx, dword [0x40c030]
sub esp, 0x30
mov dword [0x40c02c], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x30
mov dword [esp], eax
call esi
mov eax, dword [0x40c02c]
sub esp, 0x10
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetWindowTextW]
mov edx, dword [ebp - 0x20]
mov eax, dword [0x40c02c]
sub esp, 8
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0xb9
mov dword [esp], eax
call esi
mov eax, dword [0x40c02c]
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 [0x40c09c]
sub esp, 0xc
test eax, eax
mov eax, dword [0x40c024]
sete bl
mov dword [0x40c09c], 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 [0x40c02c]
sub esp, 0xc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x404840
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 fcn.004048c0
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 fcn.00401a70