Function at 0x4682fe
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4ae6c7
call fcn.004adbe8
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], 0x576c3a0b
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x20], 0xba22e974
or esi, 0xffffffff
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], 0x703c
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x34], 0x51ac06e3
push 1
lea ecx, [ebp - 0x4c]
call fcn.0042fb3f
mov dword [ebp - 0x20], ebx
jmp 0x46835d
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x4c]
mov dword [eax + ecx*4], 9
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 1
jl 0x46834d
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
xor edx, edx
cmp ecx, eax
setl dl
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
sub edx, dword [ebp - 0x1c]
neg edx
sbb edx, edx
inc edx
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
cmp edx, eax
setne cl
sub ecx, dword [ebp - 0x28]
add ecx, dword [ebp - 0x28]
imul ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x24], 0xfffffff1
cmp dword [ebp - 0x24], 0x29
jge 0x4684f7
mov dword [ebp - 0x34], 0xa77b69c9
mov dword [ebp - 0x30], 0x89fa
mov dword [ebp - 0x20], ebx
jmp 0x4683d5
mov eax, dword [ebp - 0x20]
mov dword [ebp + eax*4 - 0x40], ebx
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 2
jl 0x4683cb
mov dword [ebp - 0x20], 0x10
cmp dword [ebp - 0x20], 0x1d
jl 0x4684ec
mov dword [ebp - 0x2c], 0x5ac2
cmp dword [ebp - 0x2c], 0x5b19
jle 0x46845b
mov edi, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x28], 0x2ffa
mov esi, ebx
mov eax, edi
mov ecx, esi
sar eax, cl
cdq
push edx
push eax
lea ecx, [ebp - 0x64]
call fcn.004018f3
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x468428
mov eax, dword [eax]
push eax
call fcn.00498447
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.0042ff1b
inc esi
cmp esi, 0x5699
jl 0x46840d
dec edi
dec dword [ebp - 0x28]
jne 0x46840b
mov edi, dword [ebp - 0x1c]
inc edi
mov dword [ebp - 0x1c], edi
cmp edi, 0x597
jl 0x468401
or esi, 0xffffffff
mov dword [ebp - 0x1c], ebx
jmp 0x46846e
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0x38], 0x1094
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 1
jl 0x468460
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x2c], 0x573d
jge 0x46848b
push str.ntfp_ruycvkdk_etl_trpi_lludajy_tcqgctxv_vfsd_gycpifg_vtro_ydcg_gnaqgww_wiucqto
call fcn.00498447
pop ecx
mov dword [ebp - 4], esi
jmp 0x4684b2
mov dword [ebp - 0x1c], 0x14
jmp 0x4684d3
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x4684d0
push ebx
push 0x115e
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0x1f
jl 0x4684bb
mov eax, dword [ebp - 0x38]
cmp esi, eax
sbb eax, eax
inc eax
mov dword [ebp - 0x34], eax
inc dword [ebp - 0x20]
jmp 0x4683e2
inc dword [ebp - 0x30]
inc dword [ebp - 0x24]
jmp 0x4683ae
lea ecx, [ebp - 0x4c]
call fcn.0042fc11
push 0xa6d
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret