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

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.0046ce6d
mov dword [0x4c2224], esi
call fcn.0046d434
call fcn.0045cca0
call fcn.0046c8e6
call fcn.004606ab
call fcn.0046ceb8
cmp dword [0x4c3ce8], 4
jb 0x462089
jne 0x462099
cmp dword [0x4c3cf0], 2
je 0x462099
push str.MSWHEEL_ROLLMSG
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x4c1054], eax
call fcn.0046bc9d
push str.user32.dll
call fcn.0046cde0
add esp, 4
mov esi, eax
push str.winmm.dll
call fcn.0046cde0
add esp, 4
mov ebx, eax
push str.shcore.dll
call fcn.0046cde0
add esp, 4
mov edi, eax
test esi, esi
je 0x4620ec
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 0x4620f8
mov dword [0x4c3390], 0
xor eax, eax
mov dword [0x4c3450], eax
xor ebp, ebp
mov eax, 0
test ebx, ebx
je 0x462114
push str.PlaySoundA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c3384], eax
test edi, edi
je 0x46212b
push str.GetDpiForMonitor
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
mov dword [0x4c33c8], ebp
test esi, esi
je 0x462152
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 0x46215e
mov dword [0x4c33a8], 0
xor eax, eax
mov dword [0x4c33ac], eax
call fcn.00402fec
mov dword [0x4c2228], eax
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, 2
jb 0x4621c2
push dword [0x497058]
push str._s_Fatal_Error
call fcn.0045ad89
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.00411739
add esp, 4
xor esi, esi
inc esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00475893
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.0041b068
add esp, 4
push esi
call fcn.0041b0b3
add esp, 4
mov esi, eax
push 0
call fcn.0041b072
add esp, 4
test esi, esi
je 0x4621f9
push dword [esi + 0x50]
call fcn.0041b072
add esp, 4
xor esi, esi
push esi
push 0x80
push dword [0x4c2228]
call fcn.0040386a
add esp, 0xc
push dword [0x4c2228]
push esi
call fcn.0041eac9
add esp, 8
mov bl, byte [edi]
test bl, bl
je 0x46223f
lea ebp, [edi + 2]
movsx eax, bl
push eax
call fcn.00484c43
add esp, 4
test eax, eax
je 0x46227e
mov bl, byte [ebp - 1]
inc ebp
test bl, bl
jne 0x462227
push dword [0x4c2228]
call fcn.00402f24
add esp, 4
push dword [0x4c2228]
call fcn.00402fa0
add esp, 4
test al, al
jne 0x46243b
push dword [0x4c2228]
call fcn.004606e4
add esp, 4
test al, al
je 0x46237a
jmp 0x46243b
lea eax, [ebp - 2]
cmp bl, 0x26
jne 0x4622af
cmp byte [ebp - 1], 0x52
jne 0x46232a
mov cl, byte [ebp]
test cl, cl
je 0x4622a5
cmp cl, 0x26
je 0x4622a5
cmp cl, 0x40
jne 0x46232a
call fcn.00470f7a
mov bl, byte [ebp]
jmp 0x4622b1
mov ebp, eax
test bl, bl
je 0x46223f
cmp bl, 0x26
je 0x462328
cmp bl, 0x40
jne 0x462381
push ebp
call fcn.00485930
add esp, 4
mov esi, eax
xor edi, edi
inc edi
test eax, eax
cmovle edi, eax
cmp esi, 2
jl 0x4622f1
movsx eax, byte [ebp + esi - 1]
dec esi
push eax
call fcn.00484c43
add esp, 4
test eax, eax
jne 0x4622d6
inc esi
mov edi, esi
mov byte [ebp + edi], 0
inc ebp
push dword [0x4c2228]
push ebp
call fcn.0041eac9
add esp, 8
push dword [0x4c2228]
call fcn.004134d8
add esp, 4
mov ecx, dword [0x4c2228]
test al, al
je 0x462b6d
push ecx
jmp 0x462433
mov eax, ebp
inc eax
lea ecx, [esp + 0x1c]
lea edx, [esp + 0xc]
push ecx
push edx
push 0x4a7a9f
push eax
call fcn.00419ee4
add esp, 0x10
cmp eax, 2
jne 0x462364
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 0x4623ed
push dword [0x4c2228]
call fcn.004606e4
add esp, 4
test al, al
jne 0x46242d
push 0
call fcn.00462c39
lea eax, [esp + 0xc]
lea esi, [esp + 0x20]
push 0
push eax
push esi
push edi
call fcn.00473f51
add esp, 0x10
mov eax, dword [esi]
test eax, eax
jle 0x46223f
xor edi, edi
mov edx, dword [esp + 0xc]
lea ebx, [edi + 1]
mov ecx, 0
cmp ebx, eax
jge 0x4623b6
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 0x4623de
cmp eax, 2
jne 0x462b7d
add edi, 2
mov ebx, edi
mov eax, dword [esp + 0x20]
mov edi, ebx
cmp ebx, eax
jl 0x4623a2
jmp 0x46223f
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.00403d46
add esp, 8
test al, al
je 0x462b73
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.00402f24
add esp, 4
mov esi, dword [esp + 0x64]
push dword [0x4c2228]
call fcn.0041afb4
add esp, 4
test esi, esi
jne 0x4624ab
xor edi, edi
lea esi, [esp + 0x20]
mov dword [esi], edi
mov dword [esi + 4], 0x462d4c
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.004138bd
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.00478e90
add esp, 0xc
call fcn.00465d7d
mov dword [0x4c2d3c], 0xa
mov dword [0x4c2d40], 0x14
mov dword [0x4c2d44], 0x19
mov dword [0x4c2d48], 0x1c
push 0x7b
push dword [0x4c2228]
call fcn.0040324d
add esp, 8
lea eax, [eax + eax*4]
lea ebp, [eax + eax]
add ebp, 0x19
mov esi, dword [0x4c2d48]
mov ebx, dword [0x4c2d40]
push 0x7c
push dword [0x4c2228]
call fcn.0040324d
add esp, 8
mov edi, eax
imul edi, ebx
add edi, esi
lea esi, [esp + 0x20]
mov ecx, esi
call fcn.00465dab
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.0041b0b3
add esp, 4
mov ebx, 0
test eax, eax
je 0x46256c
mov bl, byte [eax + 0x54]
and bl, 1
mov eax, dword [0x497058]
push eax
xor ebp, ebp
push ebp
push ebp
call fcn.004138bd
add esp, 0xc
mov dword [esp + 4], eax
push 0x75
push dword [0x4c2228]
call fcn.004031ad
add esp, 8
movzx edi, al
shl edi, 0x15
or edi, 0xcf0000
push 0x77
push dword [0x4c2228]
call fcn.0040324d
add esp, 8
mov ecx, edi
and ecx, 0xea0000
test bl, bl
cmovne edi, ecx
xor edx, edx
inc edx
cmp eax, edx
cmove edi, ecx
push 0x5e
push dword [0x4c2228]
call fcn.004031ad
add esp, 8
movzx esi, al
lea ebx, [esi*8]
push 0x87
push dword [0x4c2228]
call fcn.004031ad
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.00465e03
push esi
call fcn.00411739
add esp, 4
xor ecx, ecx
xor edx, edx
call fcn.00465ed4
call fcn.0046648e
mov dword [0x4c2d64], 0x4a1598
push 0x4c2d64
push 0x4c222c
push dword [0x4c2228]
call fcn.0044f7c9
add esp, 0xc
mov dword [0x4c2d68], eax
mov edx, dword [0x4c2228]
mov ecx, eax
call fcn.00466598
push dword [0x4c2228]
push 0x4c1060
call fcn.004103b8
add esp, 8
mov dword [0x4c2d6c], eax
push eax
push dword [0x4c2d68]
call fcn.004563a2
add esp, 8
push 0x68
push dword [0x4c2228]
call fcn.0040324d
add esp, 8
mov esi, eax
push 0x7b
push dword [0x4c2228]
call fcn.0040324d
add esp, 8
mov edi, eax
push 0x7c
push dword [0x4c2228]
call fcn.0040324d
add esp, 8
push esi
push edi
push eax
push dword [0x4c2d68]
call fcn.0044fbe3
add esp, 0x10
lea edi, [esp + 0xc]
push edi
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 0x88
push dword [0x4c2228]
call fcn.0040324d
add esp, 8
mov dword [0x4c2d70], eax
mov dword [0x4c2d74], eax
add eax, eax
mov ecx, dword [edi + 8]
add ecx, eax
mov edx, dword [edi]
mov esi, dword [edi + 4]
add edx, dword [esp + 0x28]
sub ecx, edx
add ecx, dword [esp + 0x20]
add eax, dword [edi + 0xc]
mov dword [0x4c2d44], ecx
add esi, dword [esp + 0x2c]
sub eax, esi
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.004116c4
add esp, 0xc
mov edi, eax
push esi
push ebp
push eax
call fcn.00478e90
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.00411739
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 0x4a729d
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.0041eace
add esp, 8
call fcn.0046661b
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 0x77
push dword [0x4c2228]
call fcn.0040324d
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.0046bde0
test al, al
je 0x4629b3
push 0x4ab04c
push 0x140
push 0
push esi
call ebx
push dword [0x497058]
push str.About__s
call fcn.0045ad89
add esp, 8
mov edi, eax
push eax
push 0x150
push 0
push esi
call ebx
push edi
call fcn.00411739
add esp, 4
test byte [esp], 1
je 0x4629f3
mov esi, 0x4c2d8c
mov dword [esp], 0
jmp 0x4628dc
call fcn.00470f74
test al, al
je 0x462a10
mov eax, dword [0x4c1060]
push str.Running_with_restricted_process_ACL
push 0x4c1060
call dword [eax]
add esp, 8
push dword [0x4c1058]
call fcn.00471090
add esp, 4
call fcn.004666a0
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ecx, eax
call fcn.00466884
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.004563b1
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 0x462ad0
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 0x462ad0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor ecx, ecx
cmp eax, dword [0x4c1058]
sete cl
push ecx
push dword [0x4c2d68]
call fcn.004563b1
add esp, 8
xor esi, esi
dec esi
lea eax, [esp + 0xc]
push eax
call fcn.0046b981
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 0x462b03
push dword [edi + eax*4]
call fcn.0046bab0
add esp, 4
push edi
call fcn.00411739
add esp, 4
lea esi, [esp + 0x20]
sub esp, 0x14
movaps xmm0, xmmword [0x4a1650]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
call ebx
test eax, eax
je 0x462b5a
cmp dword [esp + 0x24], 0x12
je 0x462b64
call fcn.0046053b
mov edi, eax
push eax
call ebp
test eax, eax
je 0x462b49
push esi
push edi
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x462b50
push esi
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [esp + 0x24], 0x8005
je 0x462b10
call fcn.00401745
jmp 0x462a86
push dword [esp + 0x28]
call fcn.00462c39
push ecx
jmp 0x46236a
push str.Serialised_configuration_data_was_invalid
call fcn.00462c91
cmp eax, 0xfffffffe
jne 0x462b8d
push esi
push str.option___s__requires_an_argument
call fcn.00462cf4
push 0x4aafc2
push esi
call fcn.004854a0
add esp, 8
test eax, eax
jne 0x462bfb
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.0045ad89
add esp, 8
mov esi, eax
push edi
push str._s_Warning
call fcn.0045ad89
add esp, 8
mov edi, eax
push 4
push 0x134
push eax
push esi
push 0
call fcn.00473d56
add esp, 0x14
cmp eax, 6
jne 0x462be2
call fcn.00472a0d
push esi
call fcn.00411739
add esp, 4
push edi
call fcn.00411739
add esp, 4
push 0
call fcn.00480cfd
push str._pgpfp
push esi
call fcn.004854a0
add esp, 8
test eax, eax
jne 0x462c1e
push 0
call fcn.00473e43
add esp, 4
push 1
call fcn.00480cfd
cmp byte [esi], 0x2d
jne 0x462c2e
push esi
push str.unknown_option___s_
call fcn.00462cf4
push esi
push str.unexpected_argument___s_
call fcn.00462cf4