Function at 0x45b640
Capabilities:
Get common file path
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4d98d7
push eax
mov eax, 0x3750
mov dword fs:[0], esp
call fcn.004d4ce0
mov eax, dword [esp + 0x3760]
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, eax
and eax, 0xffff
push edi
lea ecx, [esi + 0x6184]
push eax
shr ebx, 0x10
mov dword [esp + 0x18], eax
call fcn.004d0eb0
mov ebp, eax
test ebp, ebp
je 0x45bfcc
mov eax, dword [ebp + 0x50]
mov dword [esp + 0x10], 0
push eax
call dword [sym.imp.USER32.dll_IsMenu]
test eax, eax
je 0x45b6d8
mov edx, dword [ebp + 0x50]
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0x1c
push ecx
push edx
mov dword [esp + 0x30], 8
call dword [sym.imp.USER32.dll_GetMenuInfo]
mov edx, dword [esp + 0x3c]
jmp 0x45b6db
mov edx, dword [ebp + 0x50]
test bx, bx
mov dword [esp + 0x10], edx
jne 0x45b7f8
mov eax, dword [ebp + 0x50]
test eax, eax
jne 0x45b712
mov eax, dword [esi + 0x24acc]
mov edx, dword [esi + 4]
push 0
push eax
lea ecx, [esi + 0x2dd28]
push 0
push ecx
push edx
call fcn.00402380
add esp, 0x14
jmp 0x45bfcc
test edx, edx
je 0x45bfcc
lea ebx, [esi + 0x2d8c0]
push edx
mov ecx, ebx
call fcn.004b04e0
test eax, eax
jne 0x45bfcc
mov ax, word [0x500df0]
mov edx, dword [esp + 0x10]
mov word [esp + 0x480], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x482]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x480]
push 0x104
push ecx
push edx
mov ecx, ebx
stosw word es:[edi], ax
call fcn.004b0330
test eax, eax
je 0x45bfcc
mov edi, dword [0x7272c4]
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
je 0x45b78f
xor eax, eax
test edi, edi
sete al
mov edi, eax
lea ecx, [esp + 0x688]
call fcn.004aa800
lea ecx, [esp + 0x480]
mov dword [esp + 0x3768], 0
push ecx
lea ecx, [esp + 0x68c]
call fcn.004aa820
mov ebx, eax
push ebx
call fcn.004aaf10
add esp, 4
test eax, eax
je 0x45b7cb
xor edi, edi
push 0
push 0
push 0
push 0
push edi
push ebx
mov ecx, esi
call fcn.00452680
lea ecx, [esp + 0x688]
mov dword [esp + 0x3768], 0xffffffff
call fcn.004a21b0
jmp 0x45bfcc
cmp bx, 4
jne 0x45bf4a
mov eax, dword [ebp + 0x50]
test eax, eax
jne 0x45b823
mov eax, dword [esi + 4]
lea edx, [esi + 0x2dd28]
push 0
push edx
push eax
call fcn.004026b0
add esp, 0xc
jmp 0x45bfcc
test edx, edx
je 0x45bfcc
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov dx, word [0x500df0]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x482]
mov word [esp + 0x480], dx
lea ebx, [esi + 0x2d8c0]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x10]
mov ecx, ebx
push eax
call fcn.004b04e0
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x480]
push 0x104
push ecx
push edx
mov ecx, ebx
mov edi, eax
call fcn.004b0330
test eax, eax
je 0x45bfcc
mov eax, dword [0x73ff28]
push 0x9f
push eax
call dword [sym.imp.USER32.dll_LoadMenuW]
test eax, eax
mov dword [esp + 0x18], eax
je 0x45bfcc
push edi
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ebp, eax
test ebp, ebp
je case.0x45bdd9.41090
push 0
push 0x80dd
push ebp
call dword [sym.imp.USER32.dll_DeleteMenu]
push 0
push 0xa05c
push ebp
call dword [sym.imp.USER32.dll_DeleteMenu]
push ebp
lea ecx, [esi + 0x2c5fc]
call fcn.004bdee0
xor eax, eax
cmp edi, eax
jne 0x45b979
mov ecx, 0x82
lea edi, [esp + 0x4c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x48], eax
lea edx, [esp + 0x40]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x254], ecx
push edx
mov dword [esp + 0x25c], ecx
push eax
push ebx
mov word [esp + 0x268], cx
call fcn.0042c4b0
lea ecx, [esp + 0x260]
push 0x4ed8c4
push ecx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 0x14
test eax, eax
je 0x45b958
push 0
push 0xa07d
push ebp
call dword [sym.imp.USER32.dll_DeleteMenu]
mov edx, dword [esp + 0x10]
push 0
push edx
push ebx
call fcn.0042ccc0
add esp, 8
neg eax
sbb eax, eax
add eax, 0xa07f
push eax
push ebp
call dword [sym.imp.USER32.dll_DeleteMenu]
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 0
push eax
push ecx
push edx
push 0x103
push ebp
call fcn.004be550
mov edi, eax
add esp, 0x18
cmp edi, 0xa07d
ja 0x45bdc2
je 0x45bbe5
lea eax, [edi - 0x8021]
cmp eax, 0x3d
ja case.0x45bdd9.41090
xor ecx, ecx
mov cl, byte [eax + 0x45c004]
jmp dword [ecx*4 + 0x45bfec]
lea ecx, [esp + 0x688]
call fcn.004aa800
lea edx, [esp + 0x480]
lea ecx, [esp + 0x688]
push edx
mov dword [esp + 0x376c], 2
call fcn.004aa820
push eax
call fcn.004b1a30
add esp, 4
lea ecx, [esp + 0x688]
mov dword [esp + 0x3768], 0xffffffff
call fcn.004a21b0
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004be340
add esp, 4
jmp 0x45bfcc
mov eax, dword [esp + 0x10]
mov ecx, ebx
push eax
call fcn.004b0c20
lea ecx, [esi + 0x43d8]
test ecx, ecx
je 0x45ba44
add esi, 0x43dc
jmp 0x45ba46
xor esi, esi
mov edx, dword [esi + 4]
push 0
push 0
push 0x1f
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004be340
add esp, 4
jmp 0x45bfcc
mov eax, dword [esi + 4]
lea ecx, [esp + 0x10]
push eax
push 1
push ecx
mov ecx, ebx
call fcn.004b0b10
lea edx, [esi + 0x43d8]
test edx, edx
je 0x45ba8c
add esi, 0x43dc
jmp 0x45ba8e
xor esi, esi
mov eax, dword [esi + 4]
push 0
push 0
push 0x1f
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004be340
add esp, 4
jmp 0x45bfcc
mov ecx, esi
call fcn.00456050
lea ecx, [esp + 0x688]
call fcn.004aa800
mov dx, word [0x500df0]
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x16d2]
mov word [esp + 0x16d0], dx
mov word [esp + 0x40], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x42]
mov dword [esp + 0x3768], 3
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, ebx
stosw word es:[edi], ax
call fcn.004b04e0
test eax, eax
jne 0x45bb56
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x40]
push 0x104
push edx
push eax
mov ecx, ebx
call fcn.004b0330
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x68c]
call fcn.004aa820
push eax
push 0x4ed128
lea edx, [esp + 0x16d8]
push 0x823
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea eax, [esp + 0x40]
push eax
call edi
mov ecx, dword [esi + 4]
lea edx, [esp + 0x10]
push ecx
push 1
push edx
mov ecx, ebx
call fcn.004b0b40
mov eax, dword [esp + 0x10]
mov ecx, ebx
push eax
call fcn.004b0bf0
test eax, eax
jne 0x45bbb5
mov ecx, dword [esp + 0x14]
push 1
push ecx
lea ecx, [esi + 0x6184]
call fcn.004d1260
push 0
lea edx, [esp + 0x16d4]
push 0
lea eax, [esp + 0x48]
push edx
push eax
call edi
push eax
push 1
call fcn.00438e50
add esp, 0x14
mov ecx, esi
call fcn.00455fe0
lea ecx, [esp + 0x688]
mov dword [esp + 0x3768], 0xffffffff
call fcn.004a21b0
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004be340
add esp, 4
jmp 0x45bfcc
mov dx, word [0x500df0]
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x16d2]
mov word [esp + 0x16d0], dx
mov word [esp + 0x688], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x68a]
mov word [esp + 0x40], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, dword [esp + 0x10]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x42]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x40]
push 0x104
push ecx
push edx
mov ecx, ebx
stosw word es:[edi], ax
call fcn.004b0330
test eax, eax
je case.0x45bdd9.41090
lea ecx, [esp + 0x2718]
call fcn.004aa800
lea eax, [esp + 0x40]
lea ecx, [esp + 0x2718]
push eax
mov dword [esp + 0x376c], 4
call fcn.004aa820
push eax
push 0x4ed128
lea ecx, [esp + 0x690]
push 0x823
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, dword [esi + 0x24acc]
xor ebp, ebp
add esp, 0x10
cmp ecx, ebp
je 0x45bd99
lea edx, [esp + 0x16d0]
push ebp
push edx
call fcn.004a0e30
test eax, eax
je 0x45bd99
lea eax, [esp + 0x16d0]
lea ecx, [esp + 0x40]
push eax
push ecx
call fcn.00434650
add esp, 8
test eax, eax
je 0x45bd99
mov edx, dword [esp + 0x10]
mov ecx, ebx
push edx
call fcn.004b0590
mov edx, eax
cmp edx, ebp
je 0x45bd69
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x26c]
mov dword [esp + 0x264], ebp
mov dword [esp + 0x260], 0xffffffff
mov dword [esp + 0x268], ebp
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x260]
mov dword [esp + 0x474], eax
push ecx
mov dword [esp + 0x47c], eax
push edx
push ebx
mov word [esp + 0x488], ax
call fcn.0042c4b0
mov ebx, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esi + 0x6184]
push ebx
call fcn.004d1860
mov edi, eax
push ebp
push ebp
push edi
mov ecx, esi
call fcn.00456180
push ebx
lea edx, [esp + 0x264]
push edi
push edx
mov ecx, esi
call fcn.004562c0
mov esi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea eax, [esp + 0x688]
lea ecx, [esp + 0x40]
push eax
push ecx
call esi
push eax
lea edx, [esp + 0x16d8]
lea eax, [esp + 0x48]
push edx
push eax
call esi
push eax
push 2
call fcn.00438e50
add esp, 0x14
lea ecx, [esp + 0x2718]
mov dword [esp + 0x3768], 0xffffffff
call fcn.004a21b0
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004be340
add esp, 4
jmp 0x45bfcc
lea eax, [edi - 0xa07e]
cmp eax, 0x2b
ja case.0x45bdd9.41090
xor ecx, ecx
mov cl, byte [eax + 0x45c058]
jmp dword [ecx*4 + 0x45c044]
mov edx, dword [esp + 0x10]
mov ecx, ebx
push edx
call fcn.004b04e0
test eax, eax
je 0x45be1c
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp edi, 0x805e
push 0
sete al
push eax
push ecx
mov ecx, esi
call fcn.0045af70
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004be340
add esp, 4
jmp 0x45bfcc
lea ecx, [esp + 0x2718]
mov edi, 1
call fcn.004aa800
lea edx, [esp + 0x480]
lea ecx, [esp + 0x2718]
push edx
mov dword [esp + 0x376c], edi
call fcn.004aa820
mov ebx, eax
push ebx
call fcn.004aaf10
add esp, 4
test eax, eax
je 0x45be59
xor edi, edi
push 0
push 0
push 0
push 0
push edi
push ebx
mov ecx, esi
call fcn.00452680
lea ecx, [esp + 0x2718]
mov dword [esp + 0x3768], 0xffffffff
call fcn.004a21b0
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004be340
add esp, 4
jmp 0x45bfcc
mov eax, dword [esp + 0x10]
push 1
push eax
push ebx
call fcn.0042cc30
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
call fcn.004be340
add esp, 4
jmp 0x45bfcc
mov ecx, dword [esp + 0x10]
push 0
push ecx
push ebx
call fcn.0042cc30
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
call fcn.004be340
add esp, 4
jmp 0x45bfcc
mov dx, word [0x500df0]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x42]
mov word [esp + 0x40], dx
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x44]
push eax
call fcn.00432fc0
add esp, 8
cmp word [esp + 0x40], 0
jne 0x45bf1d
push 1
lea ecx, [esp + 0x44]
push 6
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [esp + 0x40]
push 1
push edx
call fcn.004a8ef0
lea eax, [esp + 0x48]
push 1
push eax
call fcn.0042ae10
add esp, 0x10
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004be340
add esp, 4
jmp 0x45bfcc
cmp bx, 5
jne 0x45bfcc
mov ax, word [0x500df0]
mov ecx, 0x81
mov word [esp + 0x260], ax
xor eax, eax
lea edi, [esp + 0x262]
rep stosd dword es:[edi], eax
test edx, edx
stosw word es:[edi], ax
je 0x45bfcc
lea ecx, [esp + 0x260]
lea edi, [esi + 0x2d8c0]
push 0x104
push ecx
push edx
mov ecx, edi
call fcn.004b0330
test eax, eax
je 0x45bfcc
mov edx, dword [esp + 0x10]
mov ecx, edi
push edx
call fcn.004b04e0
test eax, eax
push 0
je 0x45bfb5
mov eax, dword [esp + 0x14]
push 1
push eax
mov ecx, esi
call fcn.0045af70
jmp 0x45bfcc
push 0
push 0
push 0
lea ecx, [esp + 0x270]
push 1
push ecx
mov ecx, esi
call fcn.00452680
mov ecx, dword [esp + 0x3760]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x375c
ret 8