Function at 0x461de8
Capabilities:
Get keyboard layout
Hide graphical window
Link many functions at runtime
Read file via mapping

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x4c
mov esi, dword [esp + 0x60]
mov eax, dword [0x4c1074]
xor eax, esp
mov dword [esp + 0x48], eax
call fcn.0046cb31
mov dword [0x4c2224], esi
call fcn.0046d110
call fcn.0045cb3c
call fcn.0046c5aa
call fcn.0046042b
call fcn.0046cb7c
cmp dword [0x4c3ce0], 4
jb 0x461e36
jne 0x461e46
cmp dword [0x4c3ce8], 2
je 0x461e46
push str.MSWHEEL_ROLLMSG
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x4c1054], eax
call fcn.0046b961
push str.user32.dll
call fcn.0046caa4
add esp, 4
mov esi, eax
push str.winmm.dll
call fcn.0046caa4
add esp, 4
mov ebx, eax
push str.shcore.dll
call fcn.0046caa4
add esp, 4
mov edi, eax
test esi, esi
je 0x461e99
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FlashWindowEx
push esi
call ebp
mov dword [0x4c3390], eax
push str.ToUnicodeEx
push esi
call ebp
jmp 0x461ea5
mov dword [0x4c3390], 0
xor eax, eax
mov dword [0x4c3450], eax
xor ebp, ebp
mov eax, 0
test ebx, ebx
je 0x461ec1
push str.PlaySoundA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c3384], eax
test edi, edi
je 0x461ed8
push str.GetDpiForMonitor
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
mov dword [0x4c33c8], ebp
test esi, esi
je 0x461eff
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetSystemMetricsForDpi
push esi
call edi
mov dword [0x4c33a8], eax
push str.AdjustWindowRectExForDpi
push esi
call edi
jmp 0x461f0b
mov dword [0x4c33a8], 0
xor eax, eax
mov dword [0x4c33ac], eax
call fcn.00402f9c
mov dword [0x4c2228], eax
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, 2
jb 0x461f6f
push dword [0x497058]
push str._s_Fatal_Error
call fcn.0045abe5
add esp, 8
mov esi, eax
push 0x30
push eax
push str.Failed_to_initialize_COM_subsystem
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call fcn.00411645
add esp, 4
xor esi, esi
inc esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00475526
mov eax, esi
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
mov edi, dword [esp + 0x68]
mov esi, dword [0x49705c]
push esi
call fcn.0041b214
add esp, 4
push esi
call fcn.0041b25f
add esp, 4
mov esi, eax
push 0
call fcn.0041b21e
add esp, 4
test esi, esi
je 0x461fa6
push dword [esi + 0x50]
call fcn.0041b21e
add esp, 4
xor esi, esi
push esi
push 0x7f
push dword [0x4c2228]
call fcn.0040381a
add esp, 0xc
push dword [0x4c2228]
push esi
call fcn.0041ec44
add esp, 8
mov bl, byte [edi]
test bl, bl
je 0x461fe9
lea ebp, [edi + 2]
movsx eax, bl
push eax
call fcn.004848d3
add esp, 4
test eax, eax
je 0x462028
mov bl, byte [ebp - 1]
inc ebp
test bl, bl
jne 0x461fd1
push dword [0x4c2228]
call fcn.00402eda
add esp, 4
push dword [0x4c2228]
call fcn.00402f4e
add esp, 4
test al, al
jne 0x4621e5
push dword [0x4c2228]
call fcn.00460464
add esp, 4
test al, al
je 0x462124
jmp 0x4621e5
lea eax, [ebp - 2]
cmp bl, 0x26
jne 0x462059
cmp byte [ebp - 1], 0x52
jne 0x4620d4
mov cl, byte [ebp]
test cl, cl
je 0x46204f
cmp cl, 0x26
je 0x46204f
cmp cl, 0x40
jne 0x4620d4
call fcn.00470c3e
mov bl, byte [ebp]
jmp 0x46205b
mov ebp, eax
test bl, bl
je 0x461fe9
cmp bl, 0x26
je 0x4620d2
cmp bl, 0x40
jne 0x46212b
push ebp
call fcn.004855c0
add esp, 4
mov esi, eax
xor edi, edi
inc edi
test eax, eax
cmovle edi, eax
cmp esi, 2
jl 0x46209b
movsx eax, byte [ebp + esi - 1]
dec esi
push eax
call fcn.004848d3
add esp, 4
test eax, eax
jne 0x462080
inc esi
mov edi, esi
mov byte [ebp + edi], 0
inc ebp
push dword [0x4c2228]
push ebp
call fcn.0041ec44
add esp, 8
push dword [0x4c2228]
call fcn.00413648
add esp, 4
mov ecx, dword [0x4c2228]
test al, al
je 0x462913
push ecx
jmp 0x4621dd
mov eax, ebp
inc eax
lea ecx, [esp + 0x1c]
lea edx, [esp + 0xc]
push ecx
push edx
push 0x4a79af
push eax
call fcn.0041a092
add esp, 0x10
cmp eax, 2
jne 0x46210e
xor edi, edi
push dword [esp + 0x1c]
push edi
push edi
push 4
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x462197
push dword [0x4c2228]
call fcn.00460464
add esp, 4
test al, al
jne 0x4621d7
push 0
call fcn.004629df
lea eax, [esp + 0xc]
lea esi, [esp + 0x20]
push 0
push eax
push esi
push edi
call fcn.00473c19
add esp, 0x10
mov eax, dword [esi]
test eax, eax
jle 0x461fe9
xor edi, edi
mov edx, dword [esp + 0xc]
lea ebx, [edi + 1]
mov ecx, 0
cmp ebx, eax
jge 0x462160
mov ecx, dword [edx + edi*4 + 4]
mov esi, dword [edx + edi*4]
push dword [0x4c2228]
push 1
push ecx
push esi
call fcn.00401819
add esp, 0x10
cmp eax, 1
je 0x462188
cmp eax, 2
jne 0x462923
add edi, 2
mov ebx, edi
mov eax, dword [esp + 0x20]
mov edi, ebx
cmp ebx, eax
jl 0x46214c
jmp 0x461fe9
mov esi, eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
mov dword [ecx], esi
mov dword [ecx + 8], eax
mov dword [ecx + 4], edi
mov dword [ecx + 0xc], edi
mov dword [ecx + 0x10], ecx
push ecx
push dword [0x4c2228]
call fcn.00403cf6
add esp, 8
test al, al
je 0x462919
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x4c2228]
call fcn.00402eda
add esp, 4
mov esi, dword [esp + 0x64]
push dword [0x4c2228]
call fcn.0041b160
add esp, 4
test esi, esi
jne 0x462255
xor edi, edi
lea esi, [esp + 0x20]
mov dword [esi], edi
mov dword [esi + 4], 0x462af2
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [esp + 0x60]
mov dword [esi + 0x10], eax
push 0xc8
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esi + 0x14], eax
push 0x7f01
push edi
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
push dword [0x497058]
push edi
push edi
call fcn.00413a2d
add esp, 0xc
mov dword [esi + 0x24], eax
push esi
call dword [sym.imp.USER32.dll_RegisterClassW]
push 0xb10
push 0
push 0x4c222c
call fcn.00478b20
add esp, 0xc
call fcn.00465b33
mov dword [0x4c2d3c], 0xa
mov dword [0x4c2d40], 0x14
mov dword [0x4c2d44], 0x19
mov dword [0x4c2d48], 0x1c
push 0x7a
push dword [0x4c2228]
call fcn.004031fd
add esp, 8
lea eax, [eax + eax*4]
lea ebp, [eax + eax]
add ebp, 0x19
mov esi, dword [0x4c2d48]
mov ebx, dword [0x4c2d40]
push 0x7b
push dword [0x4c2228]
call fcn.004031fd
add esp, 8
mov edi, eax
imul edi, ebx
add edi, esi
lea esi, [esp + 0x20]
mov ecx, esi
call fcn.00465b61
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
sub eax, dword [esi]
cmp ebp, eax
cmovle eax, ebp
mov dword [esp], eax
sub ecx, dword [esi + 4]
cmp edi, ecx
cmovle ecx, edi
mov dword [esp + 8], ecx
push dword [0x49705c]
call fcn.0041b25f
add esp, 4
mov ebx, 0
test eax, eax
je 0x462316
mov bl, byte [eax + 0x54]
and bl, 1
mov eax, dword [0x497058]
push eax
xor ebp, ebp
push ebp
push ebp
call fcn.00413a2d
add esp, 0xc
mov dword [esp + 4], eax
push 0x74
push dword [0x4c2228]
call fcn.0040315d
add esp, 8
movzx edi, al
shl edi, 0x15
or edi, 0xcf0000
push 0x76
push dword [0x4c2228]
call fcn.004031fd
add esp, 8
mov ecx, edi
and ecx, 0xea0000
xor edx, edx
inc edx
cmp eax, edx
cmove edi, ecx
test bl, bl
cmovne edi, ecx
push 0x5d
push dword [0x4c2228]
call fcn.0040315d
add esp, 8
movzx esi, al
lea ebx, [esi*8]
push 0x86
push dword [0x4c2228]
call fcn.0040315d
add esp, 8
lea ecx, [esi*8 + 0x200]
test al, al
cmove ecx, ebx
mov eax, 0x80000000
push ebp
push dword [esp + 0x64]
push ebp
push ebp
push dword [esp + 0x18]
push dword [esp + 0x14]
push eax
push eax
push edi
mov eax, dword [esp + 0x28]
push eax
push eax
mov esi, eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x4c1058], eax
xorps xmm0, xmm0
movups xmmword [0x4c2d4c], xmm0
mov dword [0x4c2d60], ebp
mov dword [0x4c2d5c], ebp
call fcn.00465bb9
push esi
call fcn.00411645
add esp, 4
xor ecx, ecx
xor edx, edx
call fcn.00465c8a
call fcn.00466244
mov dword [0x4c2d64], 0x4a14d8
push 0x4c2d64
push 0x4c222c
push dword [0x4c2228]
call fcn.0044f9e1
add esp, 0xc
mov dword [0x4c2d68], eax
mov edx, dword [0x4c2228]
mov ecx, eax
call fcn.0046634e
push dword [0x4c2228]
push 0x4c1060
call fcn.004102ce
add esp, 8
mov dword [0x4c2d6c], eax
push eax
push dword [0x4c2d68]
call fcn.00456242
add esp, 8
push 0x67
push dword [0x4c2228]
call fcn.004031fd
add esp, 8
mov esi, eax
push 0x7a
push dword [0x4c2228]
call fcn.004031fd
add esp, 8
mov edi, eax
push 0x7b
push dword [0x4c2228]
call fcn.004031fd
add esp, 8
push esi
push edi
push eax
push dword [0x4c2d68]
call fcn.0044fdfc
add esp, 0x10
lea esi, [esp + 0xc]
push esi
push dword [0x4c1058]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ebx, [esp + 0x20]
push ebx
push dword [0x4c1058]
call dword [sym.imp.USER32.dll_GetClientRect]
push 0x87
push dword [0x4c2228]
call fcn.004031fd
add esp, 8
mov dword [0x4c2d70], eax
mov dword [0x4c2d74], eax
add eax, eax
mov ecx, dword [esi + 8]
add ecx, eax
sub ecx, dword [esi]
sub ecx, dword [esp + 0x28]
add ecx, dword [esp + 0x20]
mov dword [0x4c2d44], ecx
add eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
sub eax, dword [esp + 0x2c]
add eax, dword [esp + 0x24]
mov dword [0x4c2d48], eax
mov edx, dword [0x4c2d68]
mov esi, dword [edx + 0x128]
mov edx, dword [edx + 0x12c]
imul edx, dword [0x4c2d3c]
add edx, ecx
imul esi, dword [0x4c2d40]
add esi, eax
push 0xe
push esi
push edx
push ebp
push ebp
push ebp
push dword [0x4c1058]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, dword [0x4c2d3c]
lea eax, [esi + 0xf]
add esi, 0x1e
test eax, eax
cmovns esi, eax
sar esi, 4
imul esi, dword [0x4c2d40]
add esi, esi
push ebp
xor ebx, ebx
inc ebx
push ebx
push esi
call fcn.004115d0
add esp, 0xc
mov edi, eax
push esi
push ebp
push eax
call fcn.00478b20
add esp, 0xc
push edi
push ebx
push ebx
push dword [0x4c2d40]
push dword [0x4c2d3c]
call dword [sym.imp.GDI32.dll_CreateBitmap]
mov dword [0x4c2d78], eax
push edi
call fcn.00411645
add esp, 4
push dword [0x4c2d40]
push dword [0x4c2d3c]
push dword [0x4c2d78]
push dword [0x4c1058]
call dword [sym.imp.USER32.dll_CreateCaret]
mov dword [esp + 0x20], 0x1c
mov dword [esp + 0x24], 0x1f
mov dword [esp + 0x28], ebp
mov eax, dword [0x4c2d68]
mov eax, dword [eax + 0x128]
lea ecx, [eax - 1]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebp
push ebp
lea eax, [esp + 0x24]
push eax
push ebx
mov edi, ebx
push dword [0x4c1058]
call dword [sym.imp.USER32.dll_SetScrollInfo]
mov dword [0x4c2d7c], ebp
mov dword [0x4c2d80], ebp
call dword [sym.imp.USER32.dll_GetDoubleClickTime]
mov dword [0x4c2d84], eax
push ebp
push dword [0x4c1058]
call dword [sym.imp.USER32.dll_GetSystemMenu]
mov dword [0x4c2d88], eax
mov esi, 0x4c2d88
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov dword [0x4c2d8c], eax
mov ebx, dword [sym.imp.USER32.dll_AppendMenuA]
push 0x4a71dd
push 0x190
push ebp
push eax
call ebx
push str.Paste
push 0x1a0
push ebp
push dword [0x4c2d8c]
call ebx
call dword [sym.imp.USER32.dll_CreateMenu]
mov dword [0x4c2d90], eax
push edi
push 0x4c2d94
call fcn.0041ec49
add esp, 8
call fcn.004663d1
mov al, 1
mov dword [esp], eax
mov esi, dword [esi]
xor edi, edi
push edi
push edi
mov eax, 0x800
push eax
mov ebp, 0x800
push esi
call ebx
push str.Event_Log
mov eax, 0x10
push eax
push edi
push esi
call ebx
push edi
push edi
push ebp
mov ebp, 0x800
push esi
call ebx
push str.New_Session...
push 0x20
push edi
push esi
call ebx
push str.Duplicate_Session
push 0x30
push edi
push esi
call ebx
push str.Saved_Sessions
push dword [0x4c2d90]
mov eax, 0x10
push eax
push esi
call ebx
push str.Change_Settings...
push 0x50
push edi
push esi
call ebx
push edi
push edi
push ebp
push esi
call ebx
push str.Copy_All_to_Clipboard
push 0x170
push edi
push esi
call ebx
push str.Clear_Scrollback
push 0x60
push edi
push esi
call ebx
push str.Reset_Terminal
push 0x70
push edi
push esi
call ebx
push edi
push edi
push ebp
push esi
call ebx
push 0x76
push dword [0x4c2228]
call fcn.004031fd
add esp, 8
xor ecx, ecx
cmp eax, 1
sete cl
push str.Full_Screen
push 0x180
push ecx
push esi
call ebx
push edi
push edi
push ebp
push esi
call ebx
call fcn.0046baa4
test al, al
je 0x462759
push 0x4aaf5c
push 0x140
push 0
push esi
call ebx
push dword [0x497058]
push str.About__s
call fcn.0045abe5
add esp, 8
mov edi, eax
push eax
push 0x150
push 0
push esi
call ebx
push edi
call fcn.00411645
add esp, 4
test byte [esp], 1
je 0x462799
mov esi, 0x4c2d8c
mov dword [esp], 0
jmp 0x462682
call fcn.00470c38
test al, al
je 0x4627b6
mov eax, dword [0x4c1060]
push str.Running_with_restricted_process_ACL
push 0x4c1060
call dword [eax]
add esp, 8
push dword [0x4c1058]
call fcn.00470d54
add esp, 4
call fcn.00466456
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ecx, eax
call fcn.0046663a
push dword [esp + 0x6c]
push dword [0x4c1058]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x4c1058]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor ecx, ecx
cmp eax, dword [0x4c1058]
sete cl
push ecx
push dword [0x4c2d68]
call fcn.00456251
add esp, 8
push dword [0x4c1058]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ebx, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebp, dword [sym.imp.USER32.dll_IsWindow]
xor esi, esi
call fcn.00401793
test al, al
jne 0x462876
sub esp, 0x14
xorps xmm0, xmm0
movups xmmword [esp + 4], xmm0
lea eax, [esp + 0x34]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x462876
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor ecx, ecx
cmp eax, dword [0x4c1058]
sete cl
push ecx
push dword [0x4c2d68]
call fcn.00456251
add esp, 8
xor esi, esi
dec esi
lea eax, [esp + 0xc]
push eax
call fcn.0046b646
add esp, 4
mov edi, eax
push 0x1cff
push esi
push 0
push eax
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, dword [esp + 0xc]
jae 0x4628a9
push dword [edi + eax*4]
call fcn.0046b775
add esp, 4
push edi
call fcn.00411645
add esp, 4
lea esi, [esp + 0x20]
sub esp, 0x14
movaps xmm0, xmmword [0x4a1590]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
call ebx
test eax, eax
je 0x462900
cmp dword [esp + 0x24], 0x12
je 0x46290a
call fcn.004602bb
mov edi, eax
push eax
call ebp
test eax, eax
je 0x4628ef
push esi
push edi
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x4628f6
push esi
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [esp + 0x24], 0x8005
je 0x4628b6
call fcn.00401745
jmp 0x46282c
push dword [esp + 0x28]
call fcn.004629df
push ecx
jmp 0x462114
push str.Serialised_configuration_data_was_invalid
call fcn.00462a37
cmp eax, 0xfffffffe
jne 0x462933
push esi
push str.option___s__requires_an_argument
call fcn.00462a9a
push 0x4aaed2
push esi
call fcn.00485130
add esp, 8
test eax, eax
jne 0x4629a1
mov edi, dword [0x497058]
push edi
push str.This_procedure_will_remove_ALL_Registry_entries_nassociated_with__s__and_will_also_remove_nthe_random_seed_file.__This_only_affects_the_ncurrently_logged_in_user.__n_nTHIS_PROCESS_WILL_DESTROY_YOUR_SAVED_SESSIONS._nAre_you_really_sure_you_want_to_continue_
call fcn.0045abe5
add esp, 8
mov esi, eax
push edi
push str._s_Warning
call fcn.0045abe5
add esp, 8
mov edi, eax
push 4
push 0x134
push eax
push esi
push 0
call fcn.00473a1e
add esp, 0x14
cmp eax, 6
jne 0x462988
call fcn.004726d3
push esi
call fcn.00411645
add esp, 4
push edi
call fcn.00411645
add esp, 4
push 0
call fcn.0048098d
push str._pgpfp
push esi
call fcn.00485130
add esp, 8
test eax, eax
jne 0x4629c4
push 0
call fcn.00473b0b
add esp, 4
push 1
call fcn.0048098d
cmp byte [esi], 0x2d
jne 0x4629d4
push esi
push str.unknown_option___s_
call fcn.00462a9a
push esi
push str.unexpected_argument___s_
call fcn.00462a9a