Function at 0x50a050
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b994
mov eax, dword fs:[0]
push eax
sub esp, 0x554
mov eax, dword [0x608514]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x42c], ecx
lea ecx, [ebp - 0x474]
push eax
mov dword [ebp - 0x544], esi
call fcn.0040d690
mov dword [ebp - 4], 0
mov edx, 0x5b90d8
lea ecx, [ebp - 0x474]
call fcn.00446630
mov edx, 0x5b90d8
lea ecx, [ebp - 0x474]
call fcn.004466c0
xor eax, eax
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x448], 7
mov word [ebp - 0x45c], ax
mov byte [ebp - 4], 1
lea edx, [ebp - 0x474]
cmp dword [ebp - 0x460], 8
mov eax, dword [ebp - 0x464]
cmovae edx, dword [ebp - 0x474]
or edi, 0xffffffff
test eax, eax
je 0x50a143
dec eax
mov ecx, edi
cmp eax, edi
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea eax, [edx + ecx*2]
je 0x50a13d
nop dword [eax]
cmp eax, edx
je 0x50a143
sub eax, 2
cmp word [eax], 0x5c
jne 0x50a130
sub eax, edx
sar eax, 1
jmp 0x50a146
or eax, 0xffffffff
cmp eax, 0xffffffff
jne 0x50a224
cmp dword [ebp - 0x460], 8
lea ecx, [ebp - 0x474]
mov eax, dword [ebp - 0x464]
cmovae ecx, dword [ebp - 0x474]
test eax, eax
je 0x50a193
dec eax
cmp eax, 0xffffffff
cmovb edi, eax
cmp word [ecx + edi*2], 0x2f
lea eax, [ecx + edi*2]
je 0x50a18d
nop
cmp eax, ecx
je 0x50a193
sub eax, 2
cmp word [eax], 0x2f
jne 0x50a180
sub eax, ecx
sar eax, 1
jmp 0x50a196
or eax, 0xffffffff
cmp eax, 0xffffffff
jne 0x50a224
xor eax, eax
mov dword [ebp - 0x44c], 0
push 0x412
push eax
mov word [ebp - 0x45c], ax
lea eax, [ebp - 0x424]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x50a674
cmp eax, 0x208
jae 0x50a674
xor eax, eax
lea ecx, [ebp - 0x424]
mov word [ebp - 0x14], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50a200
sub ecx, edx
lea eax, [ebp - 0x424]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x45c]
call fcn.004047a0
jmp 0x50a289
push eax
push 0
lea eax, [ebp - 0x48c]
push eax
lea ecx, [ebp - 0x474]
call fcn.00432a40
mov edi, eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x45c]
cmp eax, edi
je 0x50a27a
mov ecx, eax
call fcn.004046e0
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [ebp - 0x45c], xmm0
movq xmm0, qword [edi + 0x10]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
movq qword [ebp - 0x44c], xmm0
mov word [edi], ax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48c]
call fcn.004046e0
cmp dword [ebp - 0x44c], 0
je 0x50a674
mov eax, dword [ebp - 0x42c]
cmp dword [eax + 0x10], 0
je 0x50a674
cmp dword [esi + 0x10], 0
je 0x50a674
push eax
lea ecx, [ebp - 0x48c]
call fcn.0040d690
mov byte [ebp - 4], 3
mov edx, 0x5b90d8
lea ecx, [ebp - 0x48c]
call fcn.00446630
mov edx, 0x5b90d8
lea ecx, [ebp - 0x48c]
call fcn.004466c0
mov edx, 0x10
lea ecx, [ebp - 0x45c]
call fcn.004332d0
push 4
mov dword [ebp - 0x42c], 0
call fcn.0054bee4
add esp, 4
mov dword [ebp - 0x428], eax
mov byte [ebp - 4], 4
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 3
mov dword [ebp - 0x42c], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x53c]
call fcn.00449110
mov byte [ebp - 4], 6
lea eax, [ebp - 0x53c]
push eax
lea eax, [ebp - 0x474]
push eax
lea ecx, [ebp - 0x42c]
call fcn.004552d0
mov edi, dword [ebp - 0x42c]
test al, al
je 0x50a618
nop
xor eax, eax
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 7
mov word [ebp - 0x444], ax
mov byte [ebp - 4], 8
lea eax, [ebp - 0x514]
push eax
lea edx, [ebp - 0x45c]
lea ecx, [ebp - 0x560]
call fcn.00432e10
add esp, 4
mov esi, eax
mov byte [ebp - 4], 9
lea eax, [ebp - 0x444]
cmp eax, esi
je 0x50a3f1
mov ecx, eax
call fcn.004046e0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x444], xmm0
movq xmm0, qword [esi + 0x10]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
movq qword [ebp - 0x434], xmm0
mov word [esi], ax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x560]
call fcn.004046e0
mov edx, 0x10
lea ecx, [ebp - 0x444]
call fcn.004332d0
push 4
mov dword [ebp - 0x428], 0
call fcn.0054bee4
add esp, 4
mov dword [ebp - 0x548], eax
mov byte [ebp - 4], 0xa
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 8
mov dword [ebp - 0x428], eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x4fc]
call fcn.00449110
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x48c]
push eax
lea edx, [ebp - 0x444]
lea ecx, [ebp - 0x4bc]
call fcn.00432e10
add esp, 4
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x4fc]
push eax
lea eax, [ebp - 0x4bc]
push eax
lea ecx, [ebp - 0x428]
call fcn.004552d0
test al, al
je 0x50a5dc
mov esi, dword [ebp - 0x428]
nop dword [eax]
lea eax, [ebp - 0x4d4]
push eax
lea edx, [ebp - 0x444]
lea ecx, [ebp - 0x4a4]
call fcn.00432e10
add esp, 4
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x4a4]
push dword [ebp - 0x544]
push eax
call fcn.00509f30
test al, al
jne 0x50a588
lea eax, [ebp - 0x4fc]
mov ecx, esi
push eax
call fcn.00454f40
test al, al
je 0x50a4fc
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x4a4]
call fcn.004046e0
jmp 0x50a4a0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x4a4]
call fcn.004046e0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x4bc]
call fcn.004046e0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x4d4]
call fcn.004046e0
mov byte [ebp - 4], 8
test esi, esi
je 0x50a554
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x50a549
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x50a549
mov dword [esi], 0xffffffff
push 4
push esi
call fcn.0054bf14
add esp, 8
lea eax, [ebp - 0x53c]
mov dword [ebp - 0x428], 0
push eax
mov ecx, edi
call fcn.00454f40
test al, al
je 0x50a609
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x444]
call fcn.004046e0
jmp 0x50a360
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x4a4]
call fcn.004046e0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x4bc]
call fcn.004046e0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x4d4]
call fcn.004046e0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x428]
call fcn.004551f0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x444]
call fcn.004046e0
mov byte [ebp - 0x53d], 1
jmp 0x50a61f
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x4bc]
call fcn.004046e0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x4d4]
call fcn.004046e0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x428]
call fcn.004551f0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x444]
call fcn.004046e0
mov byte [ebp - 0x53d], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x514]
call fcn.004046e0
mov byte [ebp - 4], 3
test edi, edi
je 0x50a659
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x50a64e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x50a64e
mov dword [edi], 0xffffffff
push 4
push edi
call fcn.0054bf14
add esp, 8
mov dword [ebp - 0x42c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48c]
call fcn.004046e0
jmp 0x50a67b
mov byte [ebp - 0x53d], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x45c]
call fcn.004046e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x474]
call fcn.004046e0
mov al, byte [ebp - 0x53d]
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.0054bed3
mov esp, ebp
pop ebp
ret 0xc