Function at 0x4d9d40
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4fc7db
push eax
mov edx, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x7ac
or ecx, 0xffffffff
xor eax, eax
push ebx
push ebp
push esi
push edi
mov edi, edx
lea ebx, [esp + 0x4b8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 0x4d9f04
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
mov bl, 0x5c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x38]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x4d9de5
lea esi, [esp + ecx + 0x38]
mov dl, byte [esi]
cmp dl, bl
mov byte [esp + eax + 0x5b8], dl
jne 0x4d9ddf
cmp eax, 2
jge 0x4d9de5
inc eax
dec esi
cmp eax, ecx
jl 0x4d9dcd
sub ecx, eax
mov edx, ecx
test edx, edx
jle 0x4d9e06
mov ebp, ecx
lea esi, [esp + 0x38]
lea edi, [esp + 0x2b8]
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 + 0x2b8], 0
test eax, eax
jle 0x4d9e35
lea esi, [esp + edx + 0x39]
mov dl, byte [esi + ecx]
cmp dl, bl
je 0x4d9e28
mov byte [esp + ecx + 0x5b8], dl
jne 0x4d9e30
mov byte [esp + ecx + 0x5b8], 0
inc ecx
cmp ecx, eax
jl 0x4d9e18
mov byte [esp + eax + 0x5b8], 0
mov al, byte [esp + 0x2ba]
cmp al, bl
je 0x4d9e57
mov byte [esp + 0x2ba], bl
mov byte [esp + 0x2bb], 0
lea edi, [esp + 0x2b8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
test ebp, ebp
jle 0x4d9e7d
cmp byte [esp + eax + 0x2b8], 0x3a
je 0x4d9e7d
inc eax
cmp eax, ebp
jl 0x4d9e6e
mov edx, ebp
sub edx, eax
lea ecx, [edx + 1]
test ecx, ecx
jle 0x4d9ea1
mov ebx, ecx
lea esi, [esp + eax + 0x2b7]
lea edi, [esp + 0x38]
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 + 0x39], 0
jne 0x4d9ed7
lea eax, [esp + 0x238]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x238]
lea edx, [esp + 0x38]
push ecx
push 0x50d39c
push edx
call fcn.004f175f
add esp, 0xc
lea eax, [esp + 0x5b8]
lea ecx, [esp + 0x38]
push eax
push ecx
lea edx, [esp + 0x4c0]
push str._s_s
push edx
call fcn.004f175f
add esp, 0x10
mov dword [esp + 0x7c4], 0xffffffff
lea eax, [esp + 0x4b8]
lea ecx, [esp + 0x18]
push eax
call fcn.00402b80
lea ecx, [esp + 0x18]
mov dword [esp + 0x7c4], 2
call fcn.00402d30
cmp eax, 1
jbe 0x4da0eb
lea ecx, [esp + 0x18]
xor ebp, ebp
call fcn.00402c10
mov ebx, dword [esp + 0x7d0]
push eax
push 0x50d39c
push ebx
mov dword [esp + 0x20], eax
call fcn.004f175f
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x18]
call fcn.00402bb0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x10]
not ecx
dec ecx
mov esi, ecx
cmp esi, 2
jle 0x4d9fc1
cmp edi, 3
jge 0x4d9fa4
lea ecx, [esp + 0x18]
call fcn.00402bb0
push eax
push 0x50d39c
push ebx
call fcn.004f175f
add esp, 0xc
cmp edi, 1
jne 0x4d9fbc
mov ecx, dword [esp + 0x14]
push ecx
push 0x50d39c
push ebx
call fcn.004f175f
add esp, 0xc
mov ebp, 1
cmp edi, 3
jge 0x4d9fe7
cmp esi, 3
jge 0x4d9fe7
lea ecx, [esp + 0x18]
mov dword [esp + 0x7c4], 0xffffffff
call fcn.00402ba0
xor ax, ax
jmp 0x4da14f
cmp edi, 2
jle 0x4d9fed
inc ebp
lea ecx, [esp + 0x18]
call fcn.00402d00
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jle 0x4da008
inc ebp
lea ecx, [esp + 0x18]
call fcn.00402cd0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jle 0x4da023
inc ebp
lea ecx, [esp + 0x18]
call fcn.00402ca0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jle 0x4da03e
inc ebp
lea ecx, [esp + 0x18]
call fcn.00402c70
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jle 0x4da059
inc ebp
lea ecx, [esp + 0x18]
call fcn.00402c40
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jle 0x4da093
lea ecx, [esp + 0x18]
call fcn.00402c40
mov edx, dword [esp + 0x7d4]
push eax
push 0x50d39c
push edx
call fcn.004f175f
add esp, 0xc
inc ebp
lea ecx, [esp + 0x18]
call fcn.00402be0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jle 0x4da0d2
cmp dword [esp + 0x10], 1
je 0x4da0d1
lea ecx, [esp + 0x18]
call fcn.00402be0
push eax
mov eax, dword [esp + 0x18]
push eax
push str._s__s
push ebx
call fcn.004f175f
add esp, 0x10
inc ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x7c4], 0xffffffff
call fcn.00402ba0
mov ax, bp
jmp 0x4da14f
mov edi, 0x514ba8
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x7c4], 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x7d0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x52dca0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x7d4]
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 + 0x18]
call fcn.00402ba0
or ax, 0xffff
mov ecx, dword [esp + 0x7bc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x7b8
ret