Function at 0x46f2d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56eff1
mov eax, dword fs:[0]
push eax
sub esp, 0xb7c
mov eax, dword [0x5bfd00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x5c2b2c]
mov esi, dword [ebp + 8]
mov dword [ebp - 0xb80], eax
mov eax, dword fs:[0x2c]
mov dword [ebp - 0xb84], esi
mov edi, dword [eax + ecx*4]
mov eax, dword [0x5c2548]
mov dword [ebp - 0xb84], edi
cmp eax, dword [edi + 4]
jg 0x46f8cc
mov eax, dword [0x5c254c]
cmp eax, dword [edi + 4]
jg 0x46f902
cmp dword [0x5bf018], 0
jne 0x46f526
push 0x7ff
lea eax, [ebp - 0xb1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xorps xmm0, xmm0
mov dword [ebp - 0xb3c], 0
lea ecx, [ebp - 0xb1c]
mov dword [ebp - 0xb38], 0
movups xmmword [ebp - 0xb4c], xmm0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46f390
sub ecx, edx
lea eax, [ebp - 0xb1c]
push ecx
push eax
lea ecx, [ebp - 0xb4c]
call fcn.0040d5d0
lea eax, [ebp - 0xb4c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0xb34]
push eax
call fcn.0047b8a0
mov edi, eax
add esp, 8
cmp edi, 0x5bf008
je 0x46f405
mov ecx, 0x5bf008
call fcn.0040b500
movups xmm0, xmmword [edi]
movups xmmword [0x5bf008], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [0x5bf018], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov ecx, dword [ebp - 0xb20]
cmp ecx, 0xf
jbe 0x46f43b
mov edx, dword [ebp - 0xb34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x46f431
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f489
push ecx
push edx
call fcn.00563352
add esp, 8
mov ecx, dword [ebp - 0xb38]
mov dword [ebp - 0xb24], 0
mov dword [ebp - 0xb20], 0xf
mov byte [ebp - 0xb34], 0
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0xf
jbe 0x46f499
mov edx, dword [ebp - 0xb4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x46f48f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x46f48f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00563352
add esp, 8
lea eax, [ebp - 0xb34]
push eax
call fcn.0047ed00
mov edi, eax
add esp, 4
cmp edi, 0x5bf020
je 0x46f4e4
mov ecx, 0x5bf020
call fcn.0040b500
movups xmm0, xmmword [edi]
movups xmmword [0x5bf020], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [0x5bf030], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov ecx, dword [ebp - 0xb20]
cmp ecx, 0xf
jbe 0x46f520
mov edx, dword [ebp - 0xb34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x46f516
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x46f516
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00563352
add esp, 8
mov edi, dword [ebp - 0xb84]
mov ecx, dword [ebp - 0xb80]
push 0x5bf008
call fcn.00477f30
test al, al
je 0x46f608
mov ecx, dword [ebp - 0xb80]
lea eax, [ebp - 0xb4c]
push 0x3fffffff
push dword [0x5bf018]
push eax
call fcn.0048c3b0
lea eax, [ebp - 0xb4c]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0xb34]
push 0x5bf020
push eax
call fcn.004868a0
mov ecx, dword [ebp - 0xb38]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
add esp, 0xc
mov dword [esi + 0x14], 0
movups xmm0, xmmword [ebp - 0xb34]
mov byte [ebp - 0xb34], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0xb24]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0xb24], 0
mov dword [ebp - 0xb20], 0xf
cmp ecx, 0xf
jbe 0x46f8af
mov edx, dword [ebp - 0xb4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x46f5f9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x46f5f9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00563352
add esp, 8
jmp 0x46f8af
mov eax, dword [0x5c2550]
cmp eax, dword [edi + 4]
jg 0x46f938
mov eax, dword [0x5c2554]
cmp eax, dword [edi + 4]
jg 0x46f96e
cmp dword [0x5bf048], 0
jne 0x46f7ff
push 0x103
lea eax, [ebp - 0x113]
mov byte [ebp - 0x114], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x31c], ax
lea eax, [ebp - 0x31a]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [ebp - 0x114]
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [ebp - 0x31c]
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
mov dword [ebp - 0xb24], 0
lea ecx, [ebp - 0x114]
mov dword [ebp - 0xb20], 0
movups xmmword [ebp - 0xb34], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46f6c0
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0xb34]
call fcn.0040d5d0
mov ecx, 0x5bf038
call fcn.0040b500
movups xmm0, xmmword [ebp - 0xb34]
lea ecx, [ebp - 0x31c]
mov dword [ebp - 0xb3c], 0
mov dword [ebp - 0xb38], 0
lea edx, [ecx + 2]
movups xmmword [0x5bf038], xmm0
movq xmm0, qword [ebp - 0xb24]
movq qword [0x5bf048], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0xb4c], xmm0
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46f730
sub ecx, edx
lea eax, [ebp - 0x31c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xb4c]
call fcn.0041d2f0
lea eax, [ebp - 0xb4c]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0xb34]
push eax
call fcn.0048cee0
mov edi, eax
add esp, 8
cmp edi, 0x5bf050
je 0x46f7ab
mov ecx, 0x5bf050
call fcn.0040b500
movups xmm0, xmmword [edi]
movups xmmword [0x5bf050], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [0x5bf060], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
lea ecx, [ebp - 0xb34]
call fcn.0045dc00
mov ecx, dword [ebp - 0xb38]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 7
jbe 0x46f7ff
mov edx, dword [ebp - 0xb4c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x46f7f5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x46f7f5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00563352
add esp, 8
mov edi, dword [ebp - 0xb80]
mov ecx, edi
push 0x5bf038
call fcn.00477f30
test al, al
je 0x46f8a7
push 0x3fffffff
push dword [0x5bf048]
lea eax, [ebp - 0xb7c]
mov ecx, edi
push eax
call fcn.0048c3b0
lea eax, [ebp - 0xb7c]
mov dword [ebp - 4], 3
push eax
lea eax, [ebp - 0xb64]
push 0x5bf050
push eax
call fcn.004868a0
xorps xmm0, xmm0
lea ecx, [ebp - 0xb7c]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
add esp, 0xc
movups xmm0, xmmword [ebp - 0xb64]
mov dword [esi + 0x14], 0
mov byte [ebp - 0xb64], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0xb54]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0xb54], 0
mov dword [ebp - 0xb50], 0xf
call fcn.0045dc00
jmp 0x46f8af
push edi
mov ecx, esi
call fcn.0040a090
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00563360
mov esp, ebp
pop ebp
ret
push 0x5c2548
call fcn.005638d4
add esp, 4
cmp dword [0x5c2548], 0xffffffff
jne 0x46f335
push 0x577ec0
call fcn.00563843
push 0x5c2548
call fcn.00563883
add esp, 8
jmp 0x46f335
push 0x5c254c
call fcn.005638d4
add esp, 4
cmp dword [0x5c254c], 0xffffffff
jne 0x46f346
push 0x577f20
call fcn.00563843
push 0x5c254c
call fcn.00563883
add esp, 8
jmp 0x46f346
push 0x5c2550
call fcn.005638d4
add esp, 4
cmp dword [0x5c2550], 0xffffffff
jne 0x46f619
push 0x577f80
call fcn.00563843
push 0x5c2550
call fcn.00563883
add esp, 8
jmp 0x46f619
push 0x5c2554
call fcn.005638d4
add esp, 4
cmp dword [0x5c2554], 0xffffffff
jne 0x46f62a
push 0x577fe0
call fcn.00563843
push 0x5c2554
call fcn.00563883
add esp, 8
jmp 0x46f62a