Function at 0x6005f2a9
Capabilities:
Get common file path

Disassembly:
mov eax, 0x6009bd30
call fcn.60095eb0
sub esp, 0x21c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0xd2c], ebx
jne 0x6005f5ec
push 0x1c
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x6005f2fe
mov ecx, dword [0x600b767c]
mov dword [eax + 4], ecx
mov ecx, dword [0x600b767c]
mov dword [eax + 8], ecx
mov ecx, dword [0x600b767c]
mov dword [eax + 0x10], ecx
mov ecx, dword [0x600b767c]
mov dword [eax + 0x18], ecx
jmp 0x6005f300
xor eax, eax
cmp eax, ebx
mov dword [esi + 0xd2c], eax
jne 0x6005f314
mov eax, 0x8007000e
jmp 0x6005f6fe
mov byte [eax], 1
mov eax, dword [esi + 0xd2c]
mov dword [eax + 0xc], 5
mov eax, dword [esi + 0xd2c]
mov byte [eax + 0x14], bl
mov dword [ebp - 0x14], ebx
mov eax, dword [0x6009e468]
lea ecx, [ebp - 0x18]
push ecx
push 0xf003f
push ebx
push eax
push 0x80000001
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call sub.WMMUtil.dll_Ordinal_140
cmp eax, ebx
jne 0x6005f583
lea ecx, [ebp - 0x14]
call fcn.60017ac0
mov ecx, dword [ebp - 0x18]
cmp eax, ebx
mov dword [ebp - 0x14], ecx
jne 0x6005f583
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x104
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [0x600bb5d0]
mov dword [ebp - 0x10], ebx
push ecx
call sub.WMMUtil.dll_Ordinal_145
cmp eax, ebx
jne 0x6005f3c6
mov edi, dword [esi + 0xd2c]
lea eax, [ebp - 0x228]
add edi, 4
test eax, eax
je 0x6005f3b7
lea eax, [ebp - 0x228]
push eax
call sub.WMMUtil.dll_Ordinal_113
lea ecx, [ebp - 0x228]
push ecx
push eax
mov ecx, edi
call fcn.60005fd3
mov eax, dword [str.Import_Directory]
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push eax
mov dword [ebp - 0x20], 0x104
push dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
call sub.WMMUtil.dll_Ordinal_145
cmp eax, ebx
jne 0x6005f420
mov edi, dword [esi + 0xd2c]
lea eax, [ebp - 0x228]
add edi, 8
test eax, eax
je 0x6005f411
lea eax, [ebp - 0x228]
push eax
call sub.WMMUtil.dll_Ordinal_113
lea ecx, [ebp - 0x228]
push ecx
push eax
mov ecx, edi
call fcn.60005fd3
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x104
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [0x600bb5d4]
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call sub.WMMUtil.dll_Ordinal_145
cmp eax, ebx
jne 0x6005f47a
mov edi, dword [esi + 0xd2c]
lea eax, [ebp - 0x228]
add edi, 0x10
test eax, eax
je 0x6005f46b
lea eax, [ebp - 0x228]
push eax
call sub.WMMUtil.dll_Ordinal_113
lea ecx, [ebp - 0x228]
push ecx
push eax
mov ecx, edi
call fcn.60005fd3
mov eax, dword [str.Record_Path]
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push eax
mov dword [ebp - 0x20], 0x104
push dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
call sub.WMMUtil.dll_Ordinal_145
cmp eax, ebx
jne 0x6005f4d4
mov edi, dword [esi + 0xd2c]
lea eax, [ebp - 0x228]
add edi, 0x18
test eax, eax
je 0x6005f4c5
lea eax, [ebp - 0x228]
push eax
call sub.WMMUtil.dll_Ordinal_113
lea ecx, [ebp - 0x228]
push ecx
push eax
mov ecx, edi
call fcn.60005fd3
push 4
lea eax, [ebp - 0x10]
pop edi
mov dword [ebp - 0x18], ebx
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [0x600bb5dc]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], edi
push dword [ebp - 0x14]
call sub.WMMUtil.dll_Ordinal_145
cmp eax, ebx
jne 0x6005f50b
mov eax, dword [esi + 0xd2c]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0xc], ecx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [0x600bb5d8]
mov dword [ebp - 0x1c], edi
push dword [ebp - 0x14]
call sub.WMMUtil.dll_Ordinal_145
cmp eax, ebx
jne 0x6005f53e
cmp dword [ebp - 0x18], ebx
mov ecx, dword [esi + 0xd2c]
setne al
mov byte [ecx], al
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [0x600bb5e0]
mov dword [ebp - 0x1c], edi
push dword [ebp - 0x14]
call sub.WMMUtil.dll_Ordinal_145
cmp eax, ebx
jne 0x6005f572
cmp dword [ebp - 0x18], ebx
mov ecx, dword [esi + 0xd2c]
setne al
mov byte [ecx + 0x14], al
cmp dword [ebp - 0x14], ebx
je 0x6005f583
push dword [ebp - 0x14]
call dword [0x600bdbd8]
mov dword [ebp - 0x14], ebx
mov eax, dword [esi + 0xd2c]
mov eax, dword [eax + 0x10]
cmp dword [eax - 8], ebx
jne 0x6005f5da
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x104
push eax
lea eax, [ebp - 0x228]
push eax
call sub.WMMUtil.dll_Ordinal_85
test eax, eax
je 0x6005f5da
mov edi, dword [esi + 0xd2c]
lea eax, [ebp - 0x228]
add edi, 0x10
test eax, eax
je 0x6005f5cb
lea eax, [ebp - 0x228]
push eax
call sub.WMMUtil.dll_Ordinal_113
lea ecx, [ebp - 0x228]
push ecx
push eax
mov ecx, edi
call fcn.60005fd3
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], ebx
je 0x6005f5ec
push dword [ebp - 0x14]
call dword [0x600bdbd8]
mov eax, dword [esi + 0xd2c]
mov eax, dword [eax + 8]
cmp dword [eax - 8], ebx
je 0x6005f604
push eax
call fcn.600650d7
test al, al
jne 0x6005f648
lea eax, [ebp - 0x228]
push eax
push ebx
push ebx
push 5
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x6005f648
mov edi, dword [esi + 0xd2c]
lea eax, [ebp - 0x228]
add edi, 8
test eax, eax
je 0x6005f639
lea eax, [ebp - 0x228]
push eax
call sub.WMMUtil.dll_Ordinal_113
lea ecx, [ebp - 0x228]
push ecx
push eax
mov ecx, edi
call fcn.60005fd3
mov eax, dword [esi + 0xd2c]
mov eax, dword [eax + 4]
cmp dword [eax - 8], ebx
je 0x6005f660
push eax
call fcn.600650d7
test al, al
jne 0x6005f68b
mov ecx, dword [esi + 0xd2c]
mov edi, 0x104
push edi
add ecx, 4
call fcn.600064ad
push eax
push edi
call sub.WMMUtil.dll_Ordinal_79
mov ecx, dword [esi + 0xd2c]
push 0xffffffffffffffff
add ecx, 4
call fcn.60006515
mov eax, dword [esi + 0xd2c]
mov eax, dword [eax + 0x18]
cmp dword [eax - 8], ebx
je 0x6005f6a3
push eax
call fcn.600650d7
test al, al
jne 0x6005f6cf
mov ecx, esi
call fcn.6005f8d1
mov edi, dword [esi + 0xd2c]
mov dword [ebp - 0x1c], eax
add edi, 0x18
cmp eax, ebx
jne 0x6005f6be
xor eax, eax
jmp 0x6005f6c4
push eax
call sub.WMMUtil.dll_Ordinal_113
push dword [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.60005fd3
mov eax, dword [esi + 0xd2c]
add eax, 8
push eax
call fcn.6005f0db
mov eax, dword [esi + 0xd2c]
add eax, 4
push eax
call fcn.6005f0db
mov eax, dword [esi + 0xd2c]
add eax, 0x18
push eax
call fcn.6005f0db
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret