Function at 0x489349
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59be35
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
mov dword [ebp - 0x54], ecx
call fcn.0040acc0
cmp dword [eax + 0x110], 0
je 0x48937e
mov ax, 0xfed4
jmp 0x48978e
call fcn.0040fa80
cmp dword [eax + 0x170], 0
je 0x489395
mov ax, 0xfe70
jmp 0x48978e
call fcn.0040acc0
cmp dword [eax + 0x114], 0
je 0x4893ac
mov ax, 0xfe0c
jmp 0x48978e
mov eax, dword [ebp - 0x54]
cmp dword [eax + 0x524], 0
je 0x4893c1
mov ax, 0xfda8
jmp 0x48978e
push 0
push str.Read_PBSWOK
mov ecx, dword [ebp - 0x54]
add ecx, 0x44
mov edx, dword [ebp - 0x54]
mov eax, dword [edx + 0x44]
call dword [eax + 0x24]
mov word [ebp - 0x2c], ax
mov cx, word [ebp - 0x2c]
push ecx
push 0x7530
push 0x5ffbd8
push str.PBSWOK
mov ecx, dword [ebp - 0x54]
add ecx, 0x44
call fcn.005059aa
mov dword [ebp - 0x20], eax
mov dx, word [ebp - 0x2c]
push edx
mov ecx, dword [ebp - 0x54]
add ecx, 0x44
mov eax, dword [ebp - 0x54]
mov edx, dword [eax + 0x44]
call dword [edx + 0x28]
cmp dword [ebp - 0x20], 0
jne 0x48943e
push 0
push 0
push 0
push 0
push 0x5ed1d8
call dword [sym.imp.LANGUAGE.dll_char_const____cdecl_ReadLanguageString_char_const___char_const___int_]
add esp, 0xc
push eax
mov ecx, dword [ebp - 0x54]
call fcn.00488a88
xor ax, ax
jmp 0x48978e
mov ecx, dword [ebp - 0x20]
call fcn.005091d4
cmp eax, 1
je 0x48948d
push 0
push str.____Console_Swap_not_possible__CNC_Parameter_PBSWOK_not_available_
mov ecx, dword [ebp - 0x54]
call fcn.00487e4c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x38], ecx
cmp dword [ebp - 0x38], 0
je 0x48947e
push 1
mov edx, dword [ebp - 0x38]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x38]
call dword [eax + 4]
mov dword [ebp - 0x58], eax
jmp 0x489485
mov dword [ebp - 0x58], 0
xor ax, ax
jmp 0x48978e
push 0
mov ecx, dword [ebp - 0x20]
add ecx, 0x54
call fcn.00405bb0
mov ecx, eax
call fcn.00403d90
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov word [ebp - 0x28], ax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x40], edx
cmp dword [ebp - 0x40], 0
je 0x4894d3
push 1
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x40]
call dword [edx + 4]
mov dword [ebp - 0x5c], eax
jmp 0x4894da
mov dword [ebp - 0x5c], 0
push 0x5ed230
push 0
push str.SAFE_PB_SWAP
call fcn.0040acc0
mov ecx, eax
add ecx, 0x108
call fcn.00403d90
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x48951b
movsx eax, word [ebp - 0x28]
cmp eax, 0xfffffffe
je 0x489515
movsx ecx, word [ebp - 0x28]
cmp ecx, 0xfffffffd
jne 0x48951b
mov word [ebp - 0x28], 1
movsx edx, word [ebp - 0x28]
test edx, edx
jne 0x48952c
mov ax, 0xff9c
jmp 0x48978e
cmp dword [ebp + 0xc], 0
jne 0x4895c3
movsx eax, word [ebp - 0x28]
cmp eax, 0xffffffff
jne 0x489560
push 0
push 0
push 0
push 0
push str.FIDIA_WS_KEYBSWITCH_NOSWAPRESET
call dword [sym.imp.LANGUAGE.dll_char_const____cdecl_ReadLanguageString_char_const___char_const___int_]
add esp, 0xc
push eax
mov ecx, dword [ebp - 0x54]
call fcn.00488a88
jmp 0x4895b2
movsx ecx, word [ebp - 0x28]
cmp ecx, 0xfffffffe
jne 0x48958a
push 0
push 0
push 0
push 0
push str.FIDIA_WS_KEYBSWITCH_NOSWAPEXECUTING
call dword [sym.imp.LANGUAGE.dll_char_const____cdecl_ReadLanguageString_char_const___char_const___int_]
add esp, 0xc
push eax
mov ecx, dword [ebp - 0x54]
call fcn.00488a88
jmp 0x4895b2
movsx edx, word [ebp - 0x28]
cmp edx, 0xfffffffd
jne 0x4895b2
push 0
push 0
push 0
push 0
push str.FIDIA_WS_KEYBSWITCH_NOSWAPHANDWHEEL
call dword [sym.imp.LANGUAGE.dll_char_const____cdecl_ReadLanguageString_char_const___char_const___int_]
add esp, 0xc
push eax
mov ecx, dword [ebp - 0x54]
call fcn.00488a88
movsx eax, word [ebp - 0x28]
test eax, eax
jg 0x4895c3
mov ax, 0xff9c
jmp 0x48978e
movsx ecx, word [ebp - 0x28]
test ecx, ecx
je 0x4895da
call fcn.0040fa80
mov dword [0x5ff970], 1
cmp dword [ebp + 8], 0
jne 0x489617
call fcn.0040fa80
cmp dword [eax + 0xdc], 1
jne 0x4895f7
mov dword [ebp + 8], 2
jmp 0x489617
call fcn.0040fa80
cmp dword [eax + 0xdc], 2
jne 0x48960e
mov dword [ebp + 8], 1
jmp 0x489617
or ax, 0xffff
jmp 0x48978e
cmp dword [ebp + 8], 2
jne 0x48962e
call fcn.0040fa80
mov dword [eax + 0xd8], 7
jmp 0x489643
cmp dword [ebp + 8], 1
jne 0x489643
call fcn.0040fa80
mov dword [eax + 0xd8], 5
call dword [sym.imp.KMVMInterface.dll_public:_static_bool___cdecl_KMVM::KMVMInterface::IsDriverOpen_void_]
mov byte [ebp - 0x18], al
call dword [sym.imp.KMVMInterface.dll_public:_static_bool___cdecl_KMVM::KMVMInterface::IsWin64Bit_void_]
mov byte [ebp - 0x14], al
mov edx, dword [ebp - 0x18]
and edx, 0xff
test edx, edx
jne 0x4896be
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
and eax, 0xff
push eax
push str.____SwitchKeyboardOperation_:_SWITCH_NOT_POSSIBLE_DRIVER_NOT_INSTALLED_x64_d
lea ecx, [ebp - 0x30]
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 0
push 0
lea ecx, [ebp - 0x30]
call fcn.00403d90
push eax
mov ecx, dword [ebp - 0x54]
call fcn.00488a88
mov word [ebp - 0x48], 0xffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0058df86
mov ax, word [ebp - 0x48]
jmp 0x48978e
mov edx, dword [ebp + 8]
sub edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KMVMInterface.dll_public:_static_int___cdecl_KMVM::KMVMInterface::SendCommand_enum_KMVM::KMVMInterface::CommandType_]
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x489731
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
push ecx
push str.____SwitchKeyboardOperation_:_Internal_System_Error_On_Switch._System_Error_Returned___0x_08lX_
lea edx, [ebp - 0x34]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 0
push 0
lea ecx, [ebp - 0x34]
call fcn.00403d90
push eax
mov ecx, dword [ebp - 0x54]
call fcn.00488a88
mov word [ebp - 0x4c], 0xffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0058df86
mov ax, word [ebp - 0x4c]
jmp 0x48978e
mov ax, word [ebp + 8]
push eax
mov ecx, dword [ebp - 0x54]
call fcn.004a5a87
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 2
mov ecx, dword [ebp + 8]
push ecx
push str.____SwitchKeyboardOperation:_Completed_operation__d
lea edx, [ebp - 0x24]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 0
lea ecx, [ebp - 0x24]
call fcn.00403d90
push eax
mov ecx, dword [ebp - 0x54]
call fcn.00487e4c
mov word [ebp - 0x50], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0058df86
mov ax, word [ebp - 0x50]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8