Function at 0x402d80
Capabilities:
Get common file path

Disassembly:
mov eax, 0x2ef4
call fcn.00403700
push ebx
mov ebx, dword [esp + 0x2efc]
push esi
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov byte [0x40a18c], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x7f0]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x104
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 + 0x380]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x402e42
lea esi, [esp + 0xc]
lea eax, [esp + 0x110]
sub esi, eax
xor edx, edx
lea ecx, [esp + edx + 0x110]
mov al, byte [esi + ecx]
cmp al, 0x5c
mov byte [ecx], al
jne 0x402e18
mov byte [ecx], 0
mov byte [esp + edx + 0x214], al
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + edx + 0x214], 0
cmp edx, ecx
mov byte [esp + edx + 0x110], 0
jl 0x402e05
push ebp
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x40318d
mov bl, 0x24
mov cl, byte [esp + ebp + 0x7f4]
xor al, al
cmp cl, bl
jne 0x403150
cmp byte [esp + ebp + 0x7f5], 0x44
jne 0x402f39
cmp byte [esp + ebp + 0x7f6], 0x49
jne 0x402f39
cmp byte [esp + ebp + 0x7f7], 0x52
jne 0x402f39
cmp byte [esp + ebp + 0x7f8], bl
jne 0x402f39
cmp byte [esp + ebp + 0x7f9], bl
jne 0x402ee0
mov byte [edx + 0x40a18c], bl
inc edx
mov byte [edx + 0x40a18c], 0x44
inc edx
mov byte [edx + 0x40a18c], 0x49
inc edx
mov byte [edx + 0x40a18c], 0x52
inc edx
mov byte [edx + 0x40a18c], bl
inc edx
add ebp, 5
mov byte [edx + 0x40a18c], 0
jmp 0x402f37
lea ecx, [esp + 0x218]
push ecx
push 0x40a18c
push str._s_s
push 0x40c89c
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, 0x40c89c
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x40a18c
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, 0x40a18c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ebp, 4
mov edx, ecx
mov al, 1
cmp byte [esp + ebp + 0x7f4], bl
jne 0x403150
cmp byte [esp + ebp + 0x7f5], 0x44
jne 0x40303d
cmp byte [esp + ebp + 0x7f6], 0x52
jne 0x40303d
cmp byte [esp + ebp + 0x7f7], 0x49
jne 0x40303d
cmp byte [esp + ebp + 0x7f8], 0x56
jne 0x40303d
cmp byte [esp + ebp + 0x7f9], 0x45
jne 0x40303d
cmp byte [esp + ebp + 0x7fa], bl
jne 0x40303d
cmp byte [esp + ebp + 0x7fb], bl
jne 0x402fe4
mov byte [edx + 0x40a18c], bl
inc edx
mov byte [edx + 0x40a18c], 0x44
inc edx
mov byte [edx + 0x40a18c], 0x52
inc edx
mov byte [edx + 0x40a18c], 0x49
inc edx
mov byte [edx + 0x40a18c], 0x56
inc edx
mov byte [edx + 0x40a18c], 0x45
inc edx
mov byte [edx + 0x40a18c], bl
inc edx
add ebp, 7
mov byte [edx + 0x40a18c], 0
jmp 0x40303b
lea eax, [esp + 0x114]
push eax
push 0x40a18c
push str._s_s
push 0x40c89c
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, 0x40c89c
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x40a18c
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, 0x40a18c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ebp, 6
mov edx, ecx
mov al, 1
cmp byte [esp + ebp + 0x7f4], bl
jne 0x403150
cmp byte [esp + ebp + 0x7f5], 0x57
jne 0x403150
cmp byte [esp + ebp + 0x7f6], 0x49
jne 0x403150
cmp byte [esp + ebp + 0x7f7], 0x4e
jne 0x403150
cmp byte [esp + ebp + 0x7f8], 0x44
jne 0x403150
cmp byte [esp + ebp + 0x7f9], 0x49
jne 0x403150
cmp byte [esp + ebp + 0x7fa], 0x52
jne 0x403150
cmp byte [esp + ebp + 0x7fb], bl
jne 0x403150
cmp byte [esp + ebp + 0x7fc], bl
jne 0x4030f7
mov byte [edx + 0x40a18c], bl
inc edx
mov byte [edx + 0x40a18c], 0x57
inc edx
mov byte [edx + 0x40a18c], 0x49
inc edx
mov byte [edx + 0x40a18c], 0x4e
inc edx
mov byte [edx + 0x40a18c], 0x44
inc edx
mov byte [edx + 0x40a18c], 0x49
inc edx
mov byte [edx + 0x40a18c], 0x52
inc edx
mov byte [edx + 0x40a18c], bl
inc edx
add ebp, 8
jmp 0x403165
lea eax, [esp + 0x380]
push eax
push 0x40a18c
push str._s_s
push 0x40c89c
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, 0x40c89c
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x40a18c
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, 0x40a18c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ebp, 7
mov edx, ecx
jmp 0x40316c
test al, al
jne 0x40316c
mov eax, dword [esp + 0x2f08]
inc edx
mov cl, byte [eax + ebp]
mov byte [edx + 0x40a18b], cl
mov byte [edx + 0x40a18c], 0
mov edi, dword [esp + 0x2f08]
or ecx, 0xffffffff
xor eax, eax
inc ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebp, ecx
jl 0x402e5d
mov ebx, dword [esp + 0x2f08]
mov al, byte [0x4fe3d0]
mov byte [edx + 0x40a18c], 0
cmp al, 1
pop ebp
jne 0x4031d1
push 0x40a18c
push ebx
lea edx, [esp + 0x4ec]
push str.OrgLine:__s_nNewLine:__s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x4e4]
push 0
push str.9KGames_Regfix2.0__Debug_message_
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebx
add esp, 0x2ef4
ret