Function at 0x40da70
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42751a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x434020]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ecx, dword [0x436028]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
mov edx, dword [0x434084]
push 0
push ecx
mov ecx, dword [0x434078]
push 0
push eax
mov eax, dword [0x43407c]
sub edx, eax
push edx
mov edx, dword [0x434080]
sub edx, ecx
push edx
push eax
push ecx
push 0
push 0
push str.tooltips_class32
push 0
lea ebx, [edi + 0x278]
call dword [sym.imp.USER32.dll_CreateWindowExW]
push ecx
mov dword [ebx], eax
mov eax, esp
mov dword [esp + 0x20], esp
mov dword [eax], 0xffffffff
mov esi, dword [edi + 4]
push ebx
call fcn.0040ff80
mov eax, dword [ebx]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x104
push 0
push 0x418
push eax
call esi
mov ecx, dword [ebx]
push 0
push 1
push 0x401
push ecx
call esi
lea eax, [edi + 0x3c]
lea ecx, [edi + 0x234]
call fcn.00401370
mov eax, dword [edi + 4]
push ecx
mov ecx, esp
push ecx
mov dword [ecx], 0
mov ecx, esp
lea esi, [edi + 0xb4]
push eax
mov dword [ecx], 0x434078
mov dword [esp + 0x24], esi
call fcn.00414760
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.USER32.dll_GetMenu]
mov edx, eax
mov ecx, esi
call fcn.004102c0
mov eax, dword [edi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_SetMenu]
mov esi, edi
call fcn.0040fda0
mov ebx, dword [edi + 0x28]
lea esi, [edi + 0x20c]
call fcn.00418d40
mov ecx, dword [edi + 0x210]
push 0
push 0x19
push 0x408
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push ecx
mov dword [esp + 0x20], esp
mov eax, esp
mov dword [eax], 0
push ecx
mov eax, esp
lea esi, [edi + 0x174]
mov dword [eax], 0x434078
mov edi, dword [edi + 4]
mov dword [esp + 0x24], esp
mov dword [esp + 0x24], esi
call fcn.0040c3b0
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 4]
push esi
mov dword [ebx + 0x2c], eax
call fcn.00411130
mov byte [ebx + 0x9a], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x436448]
add esi, 0x10
push esi
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x43660c]
lea ecx, [esp + 0x10]
call fcn.0040f7e0
mov edi, eax
push esi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add ebx, 0x34
mov dword [esp + 0x10], ebx
lea esi, [edi + 4]
lea ebx, [esp + 0x10]
call fcn.0040f830
mov edi, dword [ebp + 8]
mov esi, dword [esp + 0x14]
lea edx, [edi + 0x38]
add esi, 0x10
lea ebx, [esp + 0x10]
mov dword [esp + 0x10], edx
call fcn.0040f830
mov ecx, dword [esp + 0x18]
or byte [edi + 0x1f0], 0x20
lea eax, [esp + 0x18]
call fcn.004102b0
lea esi, [esp + 0x20]
lea eax, [esp + 0x18]
mov dword [esp + 0x30], 0
call fcn.00410080
mov byte [esp + 0x30], 1
mov ecx, dword [eax]
mov eax, dword [esp + 0x1c]
mov ebx, ecx
test ebx, ebx
mov dword [eax + 0x60], ecx
je 0x40dcbe
mov cl, byte [eax + 0x7c]
movzx edx, cl
shr dl, 3
and edx, 0xffffff01
push edx
movzx edx, cl
shr dl, 2
and edx, 0xffffff01
push edx
movzx edx, cl
shr dl, 5
shr cl, 4
and edx, 0xffffff01
push edx
and ecx, 0xffffff01
push ecx
mov ecx, dword [eax + 0x68]
push ecx
push eax
call fcn.004118c0
mov ecx, edi
mov byte [esp + 0x30], 0
call fcn.0040d2c0
test al, al
jne 0x40dceb
push str.about:blank
push str.about:blank
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [edi + 0x230]
mov ebx, eax
call fcn.0040ad80
cmp dword [0x436628], 0
jne 0x40dcfd
mov edx, dword [edi + 0x230]
push edx
jmp 0x40dd11
cmp dword [0x43662c], 8
mov eax, dword [0x436618]
jae 0x40dd10
mov eax, 0x436618
push eax
push edi
call fcn.0040d4a0
mov eax, dword [edi + 4]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
and ecx, 0xff7fffff
cmp eax, ecx
je 0x40dd3c
push ecx
mov ecx, dword [edi + 4]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4