Function at 0x492bf0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x56f0c8
call fcn.00524444
sub esp, 0x280
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], edi
call fcn.0055c7c5
mov eax, dword [eax + 4]
mov dword [ebp - 0x30], eax
call fcn.0055c7c5
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x14]
add eax, 0x4d6
push eax
call fcn.0053ebbd
xor ebx, ebx
push 0x2e
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.0053aa62
cmp eax, 0xffffffff
je 0x492c82
inc eax
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0053a9ea
push 0x5beeb8
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
call fcn.0053ede4
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0053ec88
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0053eb4f
and byte [ebp - 4], bl
lea ecx, [ebp - 0x20]
jmp 0x492ca8
lea eax, [ebp - 0x14]
push str..kbd
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0053ede4
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0053ec88
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0053eb4f
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.0053f016
cmp eax, 0xffffffff
jne 0x492d2e
lea eax, [ebp - 0x174]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [ebp - 0x174], 0
je 0x492d01
lea eax, [ebp - 0x174]
push eax
call fcn.00525390
cmp byte [ebp + eax - 0x175], 0x5c
pop ecx
je 0x492d01
lea eax, [ebp - 0x174]
push 0x5bc994
push eax
call fcn.005254c0
pop ecx
pop ecx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x174]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0053ee58
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.0053ec88
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0053eb4f
lea eax, [ebp - 0x28c]
push eax
push dword [ebp - 0x14]
call fcn.0053febc
test eax, eax
je 0x492e5c
cmp dword [0x629d70], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
je 0x492d98
mov eax, dword [0x62ae38]
cmp dword [eax + 0x48], ebx
je 0x492d98
mov esi, 0x966
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [ebp - 0x24], eax
je 0x492d9d
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0x190
mov dword [ebp - 0x2c], eax
push eax
mov eax, dword [0x62ae38]
push dword [eax + 0x48]
call dword [sym.imp.USER32.dll_CopyAcceleratorTableA]
mov dword [ebp - 0x18], eax
jmp 0x492d9d
mov esi, 0x966
push dword [ebp - 0x280]
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x492e69
lea ecx, [ebp - 0x40]
call fcn.0053f16c
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
call fcn.005459d2
push 0
push 0
push dword [ebp - 0x14]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.0053f31e
test eax, eax
je 0x492e14
lea eax, [ebp - 0x70]
push 0x24
push eax
lea ecx, [ebp - 0x40]
call fcn.0053f43b
lea eax, [ebp - 0x70]
push str.UE_KBDCONFIG_V4.30
push eax
call fcn.00527150
pop ecx
test eax, eax
pop ecx
jne 0x492e84
lea ecx, [ebp - 0x40]
call fcn.0053f539
mov dword [ebp - 4], 5
call fcn.00545a10
cmp dword [ebp - 0x20], 0
je 0x492e38
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x24], 0
je 0x492e50
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.0053f261
call fcn.0055c7c5
mov ecx, dword [eax + 4]
call fcn.0044592b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0053eb4f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
mov eax, dword [ebp - 0x280]
lea ecx, [ebp - 0x40]
add eax, 0xffffffdc
push eax
push ebx
call fcn.0053f43b
lea ecx, [ebp - 0x40]
call fcn.0053f539
mov eax, dword [0x629d70]
neg eax
sbb eax, eax
and eax, esi
add eax, esi
cmp dword [edi + 0x2940], 0
lea esi, [edi + 0x2940]
jne 0x492ec6
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi], eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp dword [0x629d70], 0
mov ecx, eax
mov dword [ebp - 0x28], ecx
je 0x492eec
mov edx, dword [ebp - 0x50]
mov eax, 0x320
cmp edx, eax
jl 0x492ef9
mov edx, eax
jmp 0x492ef9
mov edx, 0x190
cmp dword [ebp - 0x50], edx
jge 0x492ef9
mov edx, dword [ebp - 0x50]
xor eax, eax
cmp eax, edx
jge 0x492f15
lea esi, [eax + eax*4]
lea edi, [eax + eax*2]
inc eax
lea esi, [ebx + esi*2 + 4]
lea edi, [ecx + edi*2]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [ebp - 0x1c]
jmp 0x492efb
mov ebx, dword [ebp - 0x50]
mov dword [edi + 0x2948], ebx
cmp dword [0x629d70], 0
je 0x492fd3
xor eax, eax
cmp eax, dword [ebp - 0x18]
jge 0x492f92
xor esi, esi
mov edx, dword [ebp - 0x1c]
cmp esi, dword [edx + 0x2948]
jge 0x492f71
mov edi, dword [ebp - 0x2c]
lea edx, [esi + esi*2]
lea ecx, [ecx + edx*2]
lea edx, [eax + eax*2]
lea edx, [edi + edx*2]
mov di, word [ecx + 4]
cmp di, word [edx + 4]
je 0x492f6e
mov di, word [ecx + 2]
cmp di, word [edx + 2]
jne 0x492f68
mov cl, byte [ecx]
cmp cl, byte [edx]
je 0x492f6e
mov ecx, dword [ebp - 0x28]
inc esi
jmp 0x492f34
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
cmp esi, dword [edx + 0x2948]
jl 0x492f8f
mov esi, dword [ebp - 0x2c]
lea edx, [eax + eax*2]
lea esi, [esi + edx*2]
lea edx, [ebx + ebx*2]
inc ebx
lea edi, [ecx + edx*2]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
inc eax
jmp 0x492f2d
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x2948], ebx
je 0x492fbc
push ebx
push ecx
mov dword [eax + 0x2948], ebx
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.0053e8c4
call fcn.00422e0c
add esp, 0xc
mov ecx, dword [ebp - 0x30]
push 0
push str.MergeAccelerator
push 0x5c5660
call fcn.00444a10
mov edi, dword [ebp - 0x1c]
mov eax, dword [0x62ae38]
push dword [eax + 0x48]
call dword [sym.imp.USER32.dll_DestroyAcceleratorTable]
push dword [edi + 0x2948]
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_CreateAcceleratorTableA]
mov ecx, dword [0x62ae38]
mov dword [ecx + 0x48], eax
mov eax, dword [edi + 0x2940]
test eax, eax
je 0x492e14
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x492e14