Function at 0x46cd80
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4dcc22
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x20], esi
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], 0x4e1cd4
mov al, byte [esp + 0x13]
push 0xc
mov dword [esp + 0x30], ebx
mov byte [esi + 0x20], al
call sub.MFC42.DLL_operatornew
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ebx
mov cl, byte [esp + 0x17]
mov dl, byte [esp + 0x17]
lea edi, [esi + 0x2c]
push 0x18
mov byte [esp + 0x34], 1
mov byte [edi], cl
mov byte [edi + 1], dl
mov byte [edi + 8], bl
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 8
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], ebp
mov dword [ebp + 4], ebx
mov dword [ebp + 0x14], 1
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::constructor_void_]
cmp dword [0x60b658], ebx
jne 0x46ce24
mov dword [0x60b658], ebp
mov dword [ebp], ebx
mov eax, dword [0x60b658]
mov dword [esp + 0x14], ebx
mov dword [eax + 8], ebx
mov edx, dword [0x60b654]
lea ecx, [esp + 0x18]
inc edx
mov dword [0x60b654], edx
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x46ce4c
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [0x60b658]
push ebx
push ecx
mov ecx, edi
call fcn.0046f220
mov dword [edi + 4], eax
mov dword [edi + 0xc], ebx
mov dword [eax], eax
mov edi, dword [edi + 4]
mov dword [edi + 8], edi
mov dl, byte [esp + 0x13]
mov al, byte [esp + 0x13]
lea edi, [esi + 0x3c]
push 0x18
mov byte [esp + 0x30], 2
mov byte [edi], dl
mov byte [edi + 1], al
mov byte [edi + 8], bl
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], ebp
mov dword [ebp + 4], ebx
mov dword [ebp + 0x14], 1
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::constructor_void_]
cmp dword [0x60b650], ebx
jne 0x46cec3
mov dword [0x60b650], ebp
mov dword [ebp], ebx
mov ecx, dword [0x60b650]
mov dword [esp + 0x14], ebx
mov dword [ecx + 8], ebx
mov edx, dword [0x60b64c]
lea ecx, [esp + 0x1c]
inc edx
mov dword [0x60b64c], edx
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x46ceeb
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov edx, dword [0x60b650]
push ebx
push edx
mov ecx, edi
call fcn.0046f220
mov dword [edi + 4], eax
mov dword [edi + 0xc], ebx
mov dword [eax], eax
mov edi, dword [edi + 4]
mov dword [edi + 8], edi
push ebx
mov eax, 0x2710
push str.MS_Sans_Serif
push 0x50
lea ecx, [esi + 0x10]
mov byte [esp + 0x38], 3
mov dword [esi], ebx
mov dword [esi + 4], eax
mov dword [esi + 8], 0x2ee0
mov dword [esi + 0xc], eax
call sub.MFC42.DLL_CFont::CreatePointFont
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov byte [esp + 0x2c], 4
je 0x46cf51
mov ecx, eax
call fcn.00475720
jmp 0x46cf53
xor eax, eax
push 0x10
mov byte [esp + 0x30], 3
mov dword [esi + 0x18], eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov byte [esp + 0x2c], 5
je 0x46cf7b
mov ecx, eax
call fcn.00473760
jmp 0x46cf7d
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x1c], eax
mov byte [esi + 0x4c], bl
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret