Function at 0x4246c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4850e1
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x4c0e0c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x28], ebx
push ebx
push 0x4c1068
push 0x4c1050
lea eax, [ebp + 0xc]
mov dword [ebp - 4], ebx
push ebx
push eax
call dword [sym.imp.PMCORE.dll_PMGetSetupByName]
add esp, 4
push eax
call sub.VCRUNTIME140.dll___RTDynamicCast
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4249de
push ebx
call fcn.00477270
mov esi, eax
add esp, 4
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0xc], ebx
jne 0x42475f
test esi, esi
je 0x42475f
push str.PM_ENABLE_PRESET
lea ecx, [ebp - 0x14]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_char_const__]
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
mov ebx, 1
mov byte [ebp - 4], 1
mov ecx, esi
mov dword [ebp - 0x28], ebx
call dword [eax + 0x20]
mov byte [ebp - 0xd], bl
test eax, eax
jne 0x424763
mov byte [ebp - 0xd], 0
test bl, 1
mov dword [ebp - 4], 0
mov ebx, dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
je 0x42477a
lea ecx, [ebp - 0x14]
call ebx
cmp byte [ebp - 0xd], 0
je 0x4249b5
push 5
push 0x473
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
push 5
push 0x474
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140.dll_Ordinal_316]
push 0xfe7a
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc140.dll_Ordinal_8426]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc140.dll_Ordinal_300]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_void_]
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 4
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x4c]
add eax, 0x960
push eax
call dword [sym.imp.PMCORE.dll_PMGetPresetFolder]
add esp, 8
test eax, eax
je 0x4249ae
push 0x473
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x4249ae
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x14b
push edi
call ebx
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
push 0
push 0x143
push edi
call ebx
lea ecx, [ebp - 0x44]
call sub.mfc140.dll_Ordinal_503
push dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call dword [sym.imp.mfc140.dll_Ordinal_310]
push 0x4958e0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call dword [sym.imp.mfc140.dll_Ordinal_1696]
push 0x4958e4
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140.dll_Ordinal_1696]
push 0
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
lea ecx, [ebp - 0x44]
call sub.mfc140.dll_Ordinal_4705
test eax, eax
je 0x424945
nop dword [eax]
lea ecx, [ebp - 0x44]
call sub.mfc140.dll_Ordinal_4725
lea ecx, [ebp - 0x44]
mov esi, eax
call sub.mfc140.dll_Ordinal_8140
test eax, eax
jne 0x42493d
mov edx, dword [ebp - 0x44]
lea ecx, [ebp - 0x44]
push 0x10
call dword [edx + 0x40]
test eax, eax
jne 0x42493d
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x44]
call sub.mfc140.dll_Ordinal_5562
push str.Default.xml
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call dword [sym.imp.mfc140.dll_Ordinal_2986]
lea ecx, [ebp - 0x14]
test eax, eax
je 0x424933
call dword [sym.imp.mfc140.dll_Ordinal_5861]
sub eax, 4
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.mfc140.dll_Ordinal_8322]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call dword [sym.imp.mfc140.dll_Ordinal_1526]
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
push 0
push 0x143
push edi
call ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call dword [sym.imp.mfc140.dll_Ordinal_1044]
test esi, esi
jne 0x4248a0
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
push 0xffffffffffffffff
push 0x158
push edi
call ebx
mov esi, eax
test esi, esi
js 0x424980
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
mov ecx, dword [ebp + 0x10]
push eax
lea ecx, [ecx + 8]
call dword [0x48f528]
push 0
push esi
push 0x14e
push edi
call ebx
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x44]
call sub.mfc140.dll_Ordinal_1142
lea ecx, [ebp - 0x20]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
jmp 0x4249de
lea ecx, [ebp - 0x20]
call ebx
jmp 0x42499a
mov ebx, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x473
push ebx
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
push 0
push 0x474
push ebx
call edi
push eax
call esi
lea ecx, [ebp + 0xc]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret