Function at 0x460ed8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdbc
mov eax, 0x530ec9
push ebx
push esi
push edi
call fcn.004d57f0
xor edx, edx
mov dword [ebp - 0x28], edx
mov esi, 0x530ebc
lea edi, [ebp - 0x38]
mov ecx, 3
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov word [ebp - 0x14], 8
mov eax, dword [0x52e404]
test eax, eax
je 0x460f23
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x461296
mov cl, byte [0x52e3f9]
test cl, cl
je 0x460f72
test byte [0x528c3d], 4
je 0x460f4d
push 0x5ef4de
push 0x5ef4cb
push 0x528c40
call fcn.004541dc
add esp, 0xc
push 0
push 0
push 0
push 0
push 0
push 0
push 1
call fcn.0046590c
add esp, 0x1c
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x461296
xor eax, eax
mov dword [ebp - 0x3c], eax
mov word [ebp - 0x14], 8
push 0
lea ecx, [ebp - 0x3c]
push ecx
push 0
push 0x72
call sub.USER32.dll_SystemParametersInfoA
test eax, eax
je 0x460fb8
mov eax, dword [ebp - 0x3c]
push eax
push 0x5ef4df
push 0x400
call fcn.004542bc
add esp, 0xc
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x461296
push 0x5ef4f9
push 0x5ef4f8
lea ecx, [ebp - 0x140]
push ecx
lea eax, [ebp - 0x38]
push eax
push 0x5ef4f3
call fcn.0040ca3c
add esp, 0x14
mov dl, byte [ebp - 0x140]
test dl, dl
jne 0x4610d1
lea edi, [ebp - 0x140]
mov esi, 0x5ef504
mov byte [ebp - 0x244], 0
mov eax, edi
mov ecx, 0x11
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
push 1
lea edx, [ebp - 0x244]
push 0x104
push edx
lea ecx, [ebp - 0x38]
lea eax, [ebp - 0x140]
push ecx
push eax
push 0x80000001
call fcn.00406a10
add esp, 0x18
mov dl, byte [ebp - 0x244]
test dl, dl
jne 0x461070
push 0x5ef54b
lea ecx, [ebp - 0x140]
push ecx
call fcn.004d2e40
add esp, 8
lea eax, [ebp - 0x244]
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x140]
push 1
push 0x104
push eax
push edx
push ecx
push 0x80000001
call fcn.00406a10
add esp, 0x18
mov byte [ebp - 0x140], 0
movsx eax, byte [ebp - 0x244]
cmp eax, 0x55
jne 0x4610ab
push 1
lea edx, [ebp - 0x140]
push 0x104
push edx
lea ecx, [ebp - 0x38]
lea eax, [ebp - 0x240]
push ecx
push eax
push 0x80000001
call fcn.00406a10
add esp, 0x18
jmp 0x4610d1
push 1
lea edx, [ebp - 0x140]
push 0x104
push edx
lea ecx, [ebp - 0x38]
lea eax, [ebp - 0x240]
push ecx
push eax
push 0x80000002
call fcn.00406a10
add esp, 0x18
mov al, byte [ebp - 0x140]
test al, al
je 0x4611a4
movsx edx, al
cmp edx, 0x28
je 0x4611a4
push pe_nt_image_headers32
lea ecx, [ebp - 0x140]
push ecx
call fcn.00405c58
add esp, 8
test eax, eax
jne 0x4611a4
push 0x104
lea eax, [ebp - 0x244]
push eax
call sub.KERNEL32.dll_GetSystemDirectoryA
lea edx, [ebp - 0x244]
push edx
call fcn.004d2f1c
pop ecx
movsx ecx, byte [ebp + eax - 0x245]
cmp ecx, 0x5c
je 0x461146
push 0x5ef551
lea eax, [ebp - 0x244]
push eax
call fcn.004d2e40
add esp, 8
lea edx, [ebp - 0x140]
push edx
lea ecx, [ebp - 0x244]
push ecx
call fcn.004d2e40
add esp, 8
mov byte [ebp - 0x140], 0
push pe_nt_image_headers32
lea eax, [ebp - 0x244]
push eax
call fcn.00405c58
add esp, 8
test eax, eax
je 0x4611a4
xor eax, eax
lea edi, [ebp - 0x244]
or ecx, 0xffffffff
lea esi, [ebp - 0x140]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [ebp - 0x140]
test al, al
jne 0x4611d7
test byte [0x528c3d], 4
je 0x461262
push 0x5ef564
push 0x5ef553
push 0x528c40
call fcn.004541dc
add esp, 0xc
jmp 0x461262
lea edx, [ebp - 0x140]
push edx
call fcn.00460dc4
pop ecx
sub eax, 0xffffffff
je 0x461240
dec eax
je 0x4611f1
dec eax
je 0x461215
jmp 0x461262
test byte [0x528c3d], 4
je 0x461262
lea ecx, [ebp - 0x140]
push ecx
push 0x5ef567
push 0x528c40
call fcn.004541dc
add esp, 0xc
jmp 0x461262
mov dword [ebp - 0x28], 1
test byte [0x528c3d], 4
je 0x461262
lea eax, [ebp - 0x140]
push eax
push 0x5ef57a
push 0x528c40
call fcn.004541dc
add esp, 0xc
jmp 0x461262
test byte [0x528c3d], 4
je 0x461262
lea edx, [ebp - 0x140]
push edx
push 0x5ef58d
push 0x528c40
call fcn.004541dc
add esp, 0xc
mov word [ebp - 0x14], 0
jmp 0x461289
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
mov esp, ebp
mov edi, dword [ebp - 0x250]
mov esi, dword [ebp - 0x24c]
mov ebx, dword [ebp - 0x248]
pop ebp
ret