Function at 0x421a98
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe68
mov eax, 0x4c9e28
push ebx
push esi
push edi
call fcn.0049fef4
mov word [ebp - 0x50], 8
xor edx, edx
mov dword [ebp - 4], edx
lea edx, [ebp - 0x184]
inc dword [ebp - 0x44]
mov word [ebp - 0x50], 0x14
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3dc]
push eax
push 0x4c5fcf
push edx
call fcn.004a3230
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x170]
push ecx
call sub.KERNEL32.DLL_GetWindowsDirectoryA
push 0x4c5fd2
lea eax, [ebp - 0x170]
push eax
call fcn.0049fb64
add esp, 8
lea edx, [ebp - 0x184]
push edx
lea ecx, [ebp - 0x170]
push ecx
call fcn.0049fb64
add esp, 8
push 0x4c5fde
lea eax, [ebp - 0x170]
push eax
call fcn.0049fb64
add esp, 8
push 0x15
push 0
mov edx, dword [ebp + 8]
add edx, 0x408
push edx
call fcn.0049fac0
add esp, 0xc
push 0x100
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x41d
push ecx
call fcn.0049fac0
add esp, 0xc
push 0x100
push 0
mov eax, dword [ebp + 8]
add eax, 0x51d
push eax
call fcn.0049fac0
mov word [ebp - 0x50], 0x20
add esp, 0xc
lea edx, [ebp - 0x170]
lea eax, [ebp - 8]
call fcn.004adb50
mov edx, eax
inc dword [ebp - 0x44]
lea eax, [ebp - 4]
call fcn.004adc7c
dec dword [ebp - 0x44]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004adc4c
mov dl, 1
mov eax, dword [0x488ef0]
call fcn.00405e40
mov dword [ebp - 0x64], eax
mov word [ebp - 0x50], 0x2c
xor ecx, ecx
mov dl, 1
mov dword [ebp - 0x6c], ecx
mov eax, dword [0x4890c4]
mov word [ebp - 0x50], 0x2c
mov word [ebp - 0x50], 0x38
push 0
mov ecx, dword [ebp - 4]
call fcn.0048c254
mov dword [ebp - 0x6c], eax
lea edx, [ebp - 0x198]
mov ecx, 4
mov eax, dword [ebp - 0x6c]
mov ebx, dword [eax]
call dword [ebx + 4]
mov byte [ebp - 0x194], 0
lea eax, [ebp - 0x198]
mov edx, 0x4c5fe3
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x421d11
test cl, cl
je 0x421c2a
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x421d11
add eax, 2
add edx, 2
test cl, cl
jne 0x421c06
jne 0x421d11
mov eax, dword [ebp - 0x6c]
lea edx, [ebp - 0x68]
mov ecx, 4
mov ebx, dword [eax]
call dword [ebx + 4]
mov dl, 1
mov eax, dword [0x48919c]
call fcn.004035a8
mov ebx, eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x6c]
mov eax, ebx
call fcn.0048c0f4
xor edx, edx
mov eax, ebx
call fcn.0048c040
mov edx, ebx
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov esi, ebx
mov dword [ebp - 0x10], esi
test esi, esi
je 0x421c95
mov eax, dword [esi]
mov dword [ebp - 0xc], eax
mov word [ebp - 0x50], 0x50
mov edx, 3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x50], 0x44
mov eax, dword [ebp - 0x6c]
call fcn.0048c04c
mov ebx, eax
mov eax, dword [ebp - 0x6c]
call fcn.0048c030
sub ebx, eax
mov dword [ebp - 0x68], ebx
mov edx, dword [ebp - 0x68]
push edx
call fcn.0049f2bc
mov ebx, eax
mov eax, dword [ebp - 0x6c]
pop ecx
mov edx, ebx
mov esi, dword [eax]
mov ecx, dword [ebp - 0x68]
call dword [esi + 4]
mov eax, dword [ebp + 8]
mov dword [eax + 0x7f8], ebx
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x68]
mov dword [edx + 0x7fc], ecx
mov eax, dword [ebp + 8]
mov dword [eax + 0x7dc], 1
mov ebx, dword [ebp - 0x6c]
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x421d4f
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
mov word [ebp - 0x50], 0x68
mov edx, 3
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x50], 0x5c
jmp 0x421d4f
mov ebx, dword [ebp - 0x6c]
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x421d39
mov eax, dword [ebx]
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x50], 0x80
mov edx, 3
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x50], 0x74
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
call dword [ecx + 0x58]
mov edx, dword [ebp + 8]
xor eax, eax
mov dword [edx + 0x7dc], eax
mov word [ebp - 0x50], 0x2c
jmp 0x421d90
mov word [ebp - 0x50], 0xa4
xor edx, edx
mov dword [ebp - 0x2c], edx
lea ecx, [ebp - 0x2c]
inc dword [ebp - 0x44]
mov edx, 1
mov eax, dword [ebp - 0x64]
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 0x2c], 0
je 0x421db9
mov eax, dword [ebp - 0x2c]
jmp 0x421dbe
mov eax, 0x4c5fe8
mov edx, dword [ebp + 8]
mov edi, eax
xor eax, eax
add edx, 0x408
or ecx, 0xffffffff
mov esi, edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, 2
and ecx, 3
lea eax, [ebp - 0x2c]
rep movsb byte es:[edi], byte [esi]
dec dword [ebp - 0x44]
call fcn.004adc4c
mov word [ebp - 0x50], 0xb0
xor ecx, ecx
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x30]
inc dword [ebp - 0x44]
mov edx, 2
mov eax, dword [ebp - 0x64]
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 0x30], 0
je 0x421e21
mov eax, dword [ebp - 0x30]
jmp 0x421e26
mov eax, 0x4c5fe9
mov edx, dword [ebp + 8]
mov edi, eax
xor eax, eax
add edx, 0x41d
or ecx, 0xffffffff
mov esi, edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, 2
and ecx, 3
lea eax, [ebp - 0x30]
rep movsb byte es:[edi], byte [esi]
dec dword [ebp - 0x44]
call fcn.004adc4c
mov word [ebp - 0x50], 0xbc
xor ecx, ecx
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x34]
inc dword [ebp - 0x44]
mov edx, 3
mov eax, dword [ebp - 0x64]
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 0x34], 0
je 0x421e89
mov eax, dword [ebp - 0x34]
jmp 0x421e8e
mov eax, 0x4c5fea
mov edx, dword [ebp + 8]
mov edi, eax
xor eax, eax
add edx, 0x51d
or ecx, 0xffffffff
mov esi, edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, 2
and ecx, 3
lea eax, [ebp - 0x34]
rep movsb byte es:[edi], byte [esi]
dec dword [ebp - 0x44]
call fcn.004adc4c
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ecx + 0xad4], eax
mov edx, dword [ebp + 8]
push edx
call fcn.00429ae4
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xad4], eax
mov word [ebp - 0x50], 0x14
jmp 0x421ef9
mov ebx, dword [ebp - 0x64]
mov dword [ebp - 0x3c], ebx
test ebx, ebx
je 0x421f21
mov eax, dword [ebx]
mov dword [ebp - 0x38], eax
mov word [ebp - 0x50], 0xd4
mov edx, 3
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x50], 0xc8
dec dword [ebp - 0x44]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004adc4c
mov ecx, dword [ebp - 0x60]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret