Function at 0x4da170
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4fc7fb
mov edx, dword [esp + 0xc]
push eax
or ecx, 0xffffffff
mov dword fs:[0], esp
sub esp, 0x8a4
xor eax, eax
push ebx
push esi
push edi
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [esp + 0x3ac]
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, byte [edx + 1]
and ecx, 3
cmp al, 0x3a
rep movsb byte es:[edi], byte [esi]
je 0x4da367
push edx
call fcn.004fa6c0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x4ac]
mov eax, ecx
mov esi, edi
mov edi, edx
mov bl, 0x5c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x4ac]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x4da228
lea esi, [esp + ecx + 0x4ac]
mov dl, byte [esi]
cmp dl, bl
mov byte [esp + eax + 0x6ac], dl
jne 0x4da222
cmp eax, 2
jge 0x4da228
inc eax
dec esi
cmp eax, ecx
jl 0x4da210
sub ecx, eax
push ebp
mov edx, ecx
test edx, edx
jle 0x4da24d
mov ebp, ecx
lea esi, [esp + 0x4b0]
lea edi, [esp + 0x1b0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
mov byte [esp + edx + 0x1b0], 0
test eax, eax
jle 0x4da27f
lea esi, [esp + edx + 0x4b1]
mov dl, byte [esi + ecx]
cmp dl, bl
je 0x4da272
mov byte [esp + ecx + 0x6b0], dl
jne 0x4da27a
mov byte [esp + ecx + 0x6b0], 0
inc ecx
cmp ecx, eax
jl 0x4da262
mov byte [esp + eax + 0x6b0], 0
mov al, byte [esp + 0x1b2]
cmp al, bl
je 0x4da2a1
mov byte [esp + 0x1b2], bl
mov byte [esp + 0x1b3], 0
lea edi, [esp + 0x1b0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
test ebp, ebp
jle 0x4da2c7
cmp byte [esp + eax + 0x1b0], 0x3a
je 0x4da2c7
inc eax
cmp eax, ebp
jl 0x4da2b8
mov edx, ebp
sub edx, eax
lea ecx, [edx + 1]
test ecx, ecx
jle 0x4da2ee
mov ebx, ecx
lea esi, [esp + eax + 0x1af]
lea edi, [esp + 0xb0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp eax, ebp
mov byte [esp + edx + 0xb1], 0
pop ebp
jne 0x4da325
lea ecx, [esp + 0x2c]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x2c]
lea eax, [esp + 0xac]
push edx
push 0x50d39c
push eax
call fcn.004f175f
add esp, 0xc
lea ecx, [esp + 0x6ac]
push ecx
call fcn.004fa6c0
add esp, 4
lea edx, [esp + 0xac]
push eax
push edx
call fcn.004fa6c0
add esp, 4
push eax
lea eax, [esp + 0x3b4]
push str._s_s
push eax
call fcn.004f175f
add esp, 0x10
mov dword [esp + 0x8b8], 0xffffffff
lea ecx, [esp + 0x3ac]
push ecx
call fcn.004fa6c0
add esp, 4
lea ecx, [esp + 0xc]
push eax
call fcn.00402b80
lea ecx, [esp + 0xc]
mov dword [esp + 0x8b8], 2
call fcn.00402d30
cmp eax, 1
jbe 0x4da3e9
lea ecx, [esp + 0xc]
call fcn.00402d00
push eax
call fcn.004fa6c0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x8b8], 0xffffffff
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x8c4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
call fcn.00402ba0
xor ax, ax
jmp 0x4da428
mov edi, 0x52ba5c
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x8b8], 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x8c4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
call fcn.00402ba0
or ax, 0xffff
mov ecx, dword [esp + 0x8b0]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x8b0
ret