Function at 0x4da900
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x7010e8
push eax
mov dword fs:[0], esp
sub esp, 0x460
cmp dword [ebp + 0x10], 3
push esi
push edi
jne 0x4daa4b
push 0x104
lea eax, [ebp - 0x454]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x454]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
lea edx, [ecx + 2]
mov word [ebp - 0x24], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4da962
sub ecx, edx
lea eax, [ebp - 0x454]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.00473710
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.006a5f50
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x4da9ed
cmp byte [esi], 0
je 0x4da9c8
lea ecx, [ebp - 0x24]
call fcn.006a5950
mov edi, eax
call fcn.006a45f0
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push esi
call fcn.006a3d50
add esp, 0x10
test edi, edi
je 0x4da9c8
push edi
lea ecx, [ebp - 0x24]
call fcn.006a59a0
cmp byte [ebp + 0xc], 0
je 0x4da9ed
mov dword [ebp - 0x44], 0
call fcn.006a3c70
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.006a6b60
add esp, 8
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.0047ee60
mov edx, dword [ebp - 0x10]
cmp edx, 8
jb 0x4dac40
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4daa2f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4dacca
push edx
push ecx
call fcn.004e7fa0
add esp, 8
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push ebx
movzx ebx, byte [ebp + 0xc]
mov ecx, 7
xor eax, eax
mov dword [ebp - 0x3c], 0
shl ebx, 0xf
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], ecx
mov word [ebp - 0x3c], ax
mov ax, word [0x744e6c]
mov esi, 0xf
mov edx, dword [0x744e68]
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], 6
mov dword [ebp - 0x24], edx
mov word [ebp - 0x20], ax
mov byte [ebp - 0x1e], 0
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 2
mov edi, 6
mov esi, eax
add edi, eax
cmp dword [ebp - 0x10], 0x10
cmovae esi, edx
call fcn.006a45f0
push eax
lea eax, [ebp - 0x3c]
push eax
push edi
push esi
call fcn.006a3d50
mov esi, dword [ebp - 0x10]
add esp, 0x10
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov edi, dword [ebp + 0x10]
mov byte [ebp - 4], 1
cmp esi, 0x10
jb 0x4dab0a
lea ecx, [esi + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x4daafd
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4daccf
push ecx
push edx
call fcn.004e7fa0
mov ecx, dword [ebp - 0x28]
add esp, 8
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
mov esi, dword [ebp + 0x14]
mov dword [ebp - 4], 3
test esi, esi
je 0x4dab62
cmp byte [esi], 0
je 0x4dab62
lea ecx, [ebp - 0x3c]
call fcn.006a5950
mov dword [ebp + 0x10], eax
call fcn.006a45f0
push eax
lea eax, [ebp - 0x3c]
push eax
push 0
push esi
call fcn.006a3d50
mov eax, dword [ebp + 0x10]
add esp, 0x10
test eax, eax
je 0x4dab5f
push eax
lea ecx, [ebp - 0x3c]
call fcn.006a59a0
mov ecx, dword [ebp - 0x28]
mov eax, edi
sub eax, 0
je 0x4dab95
sub eax, 1
je 0x4dab84
sub eax, 1
jne 0x4dabc3
cmp ecx, 8
lea edx, [ebp - 0x3c]
mov eax, ebx
cmovae edx, dword [ebp - 0x3c]
or eax, 0xe
jmp 0x4daba4
cmp ecx, 8
lea edx, [ebp - 0x3c]
mov eax, ebx
cmovae edx, dword [ebp - 0x3c]
or eax, 0x27
jmp 0x4daba4
cmp ecx, 8
lea edx, [ebp - 0x3c]
mov eax, ebx
cmovae edx, dword [ebp - 0x3c]
or eax, 0x1c
lea ecx, [ebp - 0x24c]
push ecx
push edx
push 0
push 0
push eax
push 0
call sub.SHELL32.dll_SHGetFolderPathAndSubDirW
test eax, eax
je 0x4dac52
mov ecx, dword [ebp - 0x28]
test edi, edi
jne 0x4dabec
cmp ecx, 8
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x24c]
cmovae eax, dword [ebp - 0x3c]
or ebx, 0x23
push ecx
push eax
push edi
push edi
push ebx
push edi
call sub.SHELL32.dll_SHGetFolderPathAndSubDirW
test eax, eax
je 0x4dac52
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
cmp ecx, 8
jb 0x4dac3f
lea edx, [ecx*2 + 2]
mov ecx, dword [ebp - 0x3c]
mov eax, ecx
cmp edx, 0x1000
jb 0x4dac35
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4dacc5
push edx
push ecx
call fcn.004e7fa0
add esp, 8
pop ebx
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x24c]
xor eax, eax
lea edx, [ecx + 2]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4dac77
sub ecx, edx
lea eax, [ebp - 0x24c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00473710
mov edx, dword [ebp - 0x28]
cmp edx, 8
jb 0x4dac3f
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4dac35
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4dac35
call fcn.006cc674
call fcn.006cc674
call fcn.006cc674
int3