Function at 0x446b00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4622e3
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x49001c]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49001c]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xac]
cmp byte [ebp + 0x22d], 0
mov esi, ecx
jne 0x446e31
push 0x68
lea ecx, [ebp + 0x24]
call dword [sym.imp.K8UIRender.dll_public:_class_GameMgr::GMControl____thiscall_GameMgr::GMPaintManager::FindControl_unsigned_int_const]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x446e31
mov eax, dword [esi + 4]
push ebx
push 0x490df8
push 0x4902b4
push ebx
push eax
call sub.MSVCR80.dll___RTDynamicCast
add esp, 0x14
cmp eax, ebx
je 0x446e31
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x22c]
mov ecx, edi
call eax
mov edi, eax
cmp edi, ebx
jl 0x446e31
lea ecx, [ebp + 0x214]
mov dword [esp + 0x14], ecx
call fcn.00447670
cmp edi, eax
jae 0x446e31
mov dword [ebp + 0x228], edi
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 4]
push eax
push ecx
mov dword [esp + 0x24], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
push 0x2a0
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
cmp esi, ebx
mov dword [esp + 0xa4], ebx
je 0x446c0d
mov edx, dword [ebp + 4]
push 1
push edx
mov ecx, esi
call dword [sym.imp.K8UIRender.dll_public:_void___thiscall_GameMgr::GMMenuWnd::constructor_struct_HWND_____bool_]
mov dword [esi], vtable.GameMgr::GMMenuWnd.0
mov ebx, esi
push 0
mov ecx, ebx
mov dword [esp + 0xa8], 0xffffffff
call dword [sym.imp.K8UIRender.dll_public:_void___thiscall_GameMgr::GMMenuWnd::SetInWorkRect_bool_]
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push 0xffffffffffffffff
push 0
push 1
push 0
mov dword [esp + 0xb4], 1
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x88]
push eax
push ecx
push edx
push 0x46b628
push 3
push str.UsersMenu
push 0x9a
push 0
push 0
mov ecx, ebx
call dword [sym.imp.K8UIRender.dll_public:_void___thiscall_GameMgr::GMMenuWnd::Init_class_GameMgr::GMMenuElement___class_GameMgr::GMMenuWnd____wchar_t_const___char_const___unsigned_int__wchar_t_const___struct_tagPOINT__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_GameMgr::IDialogBuilderCallback___bool__bool__int_]
mov esi, dword [esp + 0x14]
call fcn.00447690
lea esi, [eax + 0x3c]
xor edi, edi
mov dword [esp + 0x14], esi
mov eax, dword [esi + 4]
test eax, eax
je 0x446e0f
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x446e0f
call fcn.0042d5c0
push 0x6c0
mov esi, eax
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
add esp, 4
mov dword [esp + 0x20], ebp
test ebp, ebp
mov byte [esp + 0xa4], 2
je 0x446ce0
mov ecx, ebp
call dword [sym.imp.K8UIRender.dll_public:_void___thiscall_GameMgr::GMMenuElement::constructor_void_]
mov dword [ebp], vtable.GameMgr::GMMenuElement.0
jmp 0x446ce2
xor ebp, ebp
test ebp, ebp
mov byte [esp + 0xa4], 1
je 0x446e0f
lea ecx, [esp + 0x5c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea eax, [esp + 0x24]
push 0x4bc
push eax
mov byte [esp + 0xac], 3
call dword [sym.imp.K8UIRender.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_GameMgr::LoadStr_unsigned_int_]
add esp, 8
mov edx, 8
mov byte [esp + 0xa4], 4
cmp dword [esi + 0x18], edx
jb 0x446d2e
mov ecx, dword [esi + 4]
jmp 0x446d31
lea ecx, [esi + 4]
cmp dword [eax + 0x18], edx
jb 0x446d3b
mov eax, dword [eax + 4]
jmp 0x446d3e
add eax, 4
push ecx
lea esi, [edi + 2]
lea ecx, [esi - 1]
push ecx
push eax
lea edx, [esp + 0x68]
push edx
call dword [sym.imp.K8Common.dll_public:_static_void___cdecl_GameMgr::GMStringUtils::Format_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____wchar_t_const__]
add esp, 0x10
lea ecx, [esp + 0x24]
mov byte [esp + 0xa4], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [ebp]
mov edx, dword [eax + 0x170]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, ebp
call edx
push str.MenuStyle
lea eax, [esp + 0x44]
push eax
mov ecx, ebx
call dword [sym.imp.K8UIRender.dll_public:_class_GameMgr::GMPaintManager____thiscall_GameMgr::GMMenuWnd::GetPaintManager_void_]
mov ecx, eax
call dword [sym.imp.K8UIRender.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_GameMgr::GMPaintManager::GetDefaultAttributeList_wchar_t_const__]
mov byte [esp + 0xa4], 5
cmp dword [esp + 0x54], 0
je 0x446dba
cmp dword [esp + 0x58], 8
mov eax, dword [esp + 0x44]
jae 0x446db1
lea eax, [esp + 0x44]
push eax
mov ecx, ebp
call dword [sym.imp.K8UIRender.dll_public:_class_GameMgr::GMControl____thiscall_GameMgr::GMControl::ApplyAttributeList_wchar_t_const__]
mov edx, dword [ebp]
mov eax, dword [edx + 0x180]
push 0x402
mov ecx, ebp
call eax
push edi
mov ecx, ebp
call dword [sym.imp.K8UIRender.dll_public:_void___thiscall_GameMgr::GMMenuElement::SetMenuData_long_int_]
push esi
push ebp
mov ecx, ebx
call dword [sym.imp.K8UIRender.dll_public:_void___thiscall_GameMgr::GMMenuWnd::AddMenuItem_class_GameMgr::GMMenuElement___unsigned_int_]
lea ecx, [esp + 0x40]
mov byte [esp + 0xa4], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x5c]
mov byte [esp + 0xa4], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov esi, dword [esp + 0x14]
add edi, 1
jmp 0x446c80
mov edx, dword [ebx]
mov eax, dword [edx + 8]
push 1
push 1
mov ecx, ebx
call eax
lea ecx, [esp + 0x78]
mov dword [esp + 0xa4], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0045d098
add esp, 0x94
ret 4