Function at 0x402390
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
mov eax, 0x858c
call fcn.00403700
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x85a0]
or ecx, 0xffffffff
xor eax, eax
mov byte [0x40a18c], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xd60]
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 + 0x238]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x2c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov bl, byte [esp + 0x85a4]
xor edx, edx
cmp bl, 1
jne 0x40245a
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x4024b5
lea esi, [esp + 0x130]
lea edx, [esp + 0x39c]
mov al, byte [esp + ebp + 0x2c]
cmp al, 0x5c
jne 0x402439
mov byte [edx], al
inc edx
inc esi
mov byte [edx], 0
mov byte [esi], 0
mov byte [edx], al
mov byte [esi], al
inc edx
inc esi
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
inc ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [edx], 0
cmp ebp, ecx
mov byte [esi], 0
jl 0x402427
jmp 0x4024b5
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x4024b5
mov al, byte [esp + edx + 0x2c]
cmp al, 0x5c
jne 0x402484
mov byte [esp + edx + 0x39c], 0
mov byte [esp + edx + 0x130], 0
mov byte [esp + edx + 0x130], al
mov byte [esp + edx + 0x39c], al
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + edx + 0x39c], 0
cmp edx, ecx
mov byte [esp + edx + 0x130], 0
jl 0x40246c
cmp bl, 1
jne 0x40250b
lea edi, [esp + 0x234]
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x402558
lea edx, [esp + 0x504]
mov al, byte [esp + esi + 0x234]
cmp al, 0x5c
jne 0x4024ed
mov byte [edx], al
inc edx
mov byte [edx], 0
mov byte [edx], al
inc edx
lea edi, [esp + 0x234]
or ecx, 0xffffffff
xor eax, eax
inc esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [edx], 0
cmp esi, ecx
jl 0x4024dc
jmp 0x402558
lea edi, [esp + 0x234]
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x402558
lea ebx, [esp + 0x234]
lea eax, [esp + 0x504]
lea edx, [esp + 0x504]
sub ebx, eax
mov cl, byte [ebx + edx]
lea edi, [esp + 0x234]
mov byte [edx], cl
inc edx
or ecx, 0xffffffff
xor eax, eax
inc esi
mov byte [edx], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jl 0x402539
mov edx, dword [esp + 0x85a0]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
xor ebp, ebp
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x13], 0
test ecx, ecx
mov byte [esp + 0x12], 0
jle 0x402d26
mov al, byte [esp + ebx + 0xd60]
xor cl, cl
cmp al, 0x24
jne 0x402cee
cmp byte [esp + ebx + 0xd61], 0x48
jne 0x4029ee
cmp byte [esp + ebx + 0xd62], 0x45
jne 0x4029ee
cmp byte [esp + ebx + 0xd63], 0x58
jne 0x4029ee
cmp byte [esp + ebx + 0xd64], 0x46
jne 0x4029ee
cmp byte [esp + ebx + 0xd65], 0x49
jne 0x4029ee
cmp byte [esp + ebx + 0xd66], 0x58
jne 0x4029ee
mov al, byte [esp + ebx + 0xd67]
cmp al, 0x31
je 0x4025f9
cmp al, 0x32
jne 0x4029ee
cmp byte [esp + ebx + 0xd68], 0x24
jne 0x4029ee
cmp byte [esp + ebx + 0xd69], 0x24
jne 0x402667
mov byte [ebp + 0x40a18c], 0x24
inc ebp
mov byte [ebp + 0x40a18c], 0x48
inc ebp
mov byte [ebp + 0x40a18c], 0x45
inc ebp
mov byte [ebp + 0x40a18c], 0x58
inc ebp
mov byte [ebp + 0x40a18c], 0x46
inc ebp
mov byte [ebp + 0x40a18c], 0x49
inc ebp
mov byte [ebp + 0x40a18c], 0x58
inc ebp
mov byte [ebp + 0x40a18c], al
inc ebp
mov byte [ebp + 0x40a18c], 0x24
inc ebp
add ebx, 9
mov byte [ebp + 0x40a18c], 0
jmp 0x4029ec
add ebx, 9
cmp al, 0x31
jne 0x40267d
mov al, byte [esp + 0x13]
test al, al
sete al
mov byte [esp + 0x13], al
jmp 0x40268e
cmp al, 0x32
jne 0x40268e
mov al, byte [esp + 0x12]
test al, al
sete cl
mov byte [esp + 0x12], cl
cmp byte [esp + 0x13], 1
je 0x4026a0
cmp byte [esp + 0x12], 1
jne 0x4029ec
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x66c], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ebx
cmp ebx, ecx
jge 0x402836
lea edx, [esp + 0x66d]
mov dword [esp + 0x14], edx
lea edx, [esp + 0x66c]
mov al, byte [esp + ebx + 0xd60]
cmp al, 0x24
jne 0x402704
mov edi, dword [esp + 0x85a0]
or ecx, 0xffffffff
xor eax, eax
mov byte [edx + 1], 0
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x14]
not ecx
dec ecx
mov esi, ecx
add esi, 0xa
inc edx
inc eax
mov dword [esp + 0x14], eax
jmp 0x40281c
cmp al, 0x2c
jne 0x40271a
mov eax, dword [esp + 0x14]
inc edx
inc eax
mov dword [esp + 0x14], eax
mov byte [edx], 0
jmp 0x40281b
mov al, byte [esp + esi + 0xd60]
cmp al, 0x30
jne 0x40272c
mov cl, byte [edx]
shl cl, 4
mov byte [edx], cl
cmp al, 0x31
jne 0x402739
mov cl, byte [edx]
shl cl, 4
inc cl
mov byte [edx], cl
cmp al, 0x32
jne 0x402747
mov cl, byte [edx]
shl cl, 4
add cl, 2
mov byte [edx], cl
cmp al, 0x33
jne 0x402755
mov cl, byte [edx]
shl cl, 4
add cl, 3
mov byte [edx], cl
cmp al, 0x34
jne 0x402763
mov cl, byte [edx]
shl cl, 4
add cl, 4
mov byte [edx], cl
cmp al, 0x35
jne 0x402771
mov cl, byte [edx]
shl cl, 4
add cl, 5
mov byte [edx], cl
cmp al, 0x36
jne 0x40277f
mov cl, byte [edx]
shl cl, 4
add cl, 6
mov byte [edx], cl
cmp al, 0x37
jne 0x40278d
mov cl, byte [edx]
shl cl, 4
add cl, 7
mov byte [edx], cl
cmp al, 0x38
jne 0x40279b
mov cl, byte [edx]
shl cl, 4
add cl, 8
mov byte [edx], cl
cmp al, 0x39
jne 0x4027a9
mov cl, byte [edx]
shl cl, 4
add cl, 9
mov byte [edx], cl
cmp al, 0x61
je 0x4027b1
cmp al, 0x41
jne 0x4027bb
mov cl, byte [edx]
shl cl, 4
add cl, 0xa
mov byte [edx], cl
cmp al, 0x62
je 0x4027c3
cmp al, 0x42
jne 0x4027cd
mov cl, byte [edx]
shl cl, 4
add cl, 0xb
mov byte [edx], cl
cmp al, 0x63
je 0x4027d5
cmp al, 0x43
jne 0x4027df
mov cl, byte [edx]
shl cl, 4
add cl, 0xc
mov byte [edx], cl
cmp al, 0x64
je 0x4027e7
cmp al, 0x44
jne 0x4027f1
mov cl, byte [edx]
shl cl, 4
add cl, 0xd
mov byte [edx], cl
cmp al, 0x65
je 0x4027f9
cmp al, 0x45
jne 0x402803
mov cl, byte [edx]
shl cl, 4
add cl, 0xe
mov byte [edx], cl
cmp al, 0x66
je 0x40280b
cmp al, 0x46
jne 0x402814
mov al, byte [edx]
shl al, 4
add al, 0xf
mov byte [edx], al
mov ecx, dword [esp + 0x14]
mov byte [ecx], 0
inc ebx
mov edi, dword [esp + 0x85a0]
or ecx, 0xffffffff
xor eax, eax
inc esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jl 0x4026d0
mov edi, 0x40a18c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x5e8c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, byte [0x4fe3d0]
and ecx, 3
cmp al, 1
rep movsb byte es:[edi], byte [esi]
jne 0x40289d
lea ecx, [esp + 0x66c]
lea edx, [esp + 0x3470]
push ecx
push str.Got_HEX_to_ASCII:__s_nSending_it_thru_stringmod.
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x3470]
push 0
push str.9KGames_Regfix2.0__Debug_message_
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x66c]
push 0
push ecx
call fcn.00402390
mov al, byte [0x4fe3d0]
add esp, 8
cmp al, 1
jne 0x4028ea
push 0x40a18c
lea edx, [esp + 0xa58]
push str.Got_HEX_to_ASCII__NEW_:__s_n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0xa54]
push 0
push str.9KGames_Regfix2.0__Debug_message_
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edi, 0x40a18c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x377c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x18], 0x30
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x19], 0x31
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov byte [esp + 0x1a], 0x32
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x5e8c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x1b], 0x33
mov edx, ecx
mov esi, edi
mov edi, 0x40a18c
mov byte [esp + 0x1c], 0x34
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
mov byte [esp + 0x1d], 0x35
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x377c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x1e], 0x36
test ecx, ecx
mov byte [esp + 0x1f], 0x37
mov byte [esp + 0x20], 0x38
mov byte [esp + 0x21], 0x39
mov byte [esp + 0x22], 0x61
mov byte [esp + 0x23], 0x62
mov byte [esp + 0x24], 0x63
mov byte [esp + 0x25], 0x64
mov byte [esp + 0x26], 0x65
mov byte [esp + 0x27], 0x66
jle 0x4029ec
movsx eax, byte [esp + edx + 0x377c]
mov ecx, eax
and eax, 0xf
sar ecx, 4
and ecx, 0xf
mov esi, eax
test edx, edx
je 0x4029c0
mov byte [ebp + 0x40a18c], 0x2c
inc ebp
mov al, byte [esp + ecx + 0x18]
mov cl, byte [esp + esi + 0x18]
mov byte [ebp + 0x40a18c], al
inc ebp
lea edi, [esp + 0x377c]
xor eax, eax
mov byte [ebp + 0x40a18c], cl
inc ebp
or ecx, 0xffffffff
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jl 0x40299f
mov cl, 1
cmp byte [esp + ebx + 0xd60], 0x24
jne 0x402cee
cmp byte [esp + ebx + 0xd61], 0x44
jne 0x402acd
cmp byte [esp + ebx + 0xd62], 0x49
jne 0x402acd
cmp byte [esp + ebx + 0xd63], 0x52
jne 0x402acd
cmp byte [esp + ebx + 0xd64], 0x24
jne 0x402acd
cmp byte [esp + ebx + 0xd65], 0x24
jne 0x402a72
mov byte [ebp + 0x40a18c], 0x24
inc ebp
mov byte [ebp + 0x40a18c], 0x44
inc ebp
mov byte [ebp + 0x40a18c], 0x49
inc ebp
mov byte [ebp + 0x40a18c], 0x52
inc ebp
mov byte [ebp + 0x40a18c], 0x24
inc ebp
add ebx, 5
mov byte [ebp + 0x40a18c], 0
jmp 0x402acb
lea edx, [esp + 0x39c]
push edx
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 eax, ecx
mov esi, edi
mov edi, 0x40a18c
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]
mov edi, 0x40a18c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ebx, 4
mov ebp, ecx
mov cl, 1
cmp byte [esp + ebx + 0xd60], 0x24
jne 0x402cee
cmp byte [esp + ebx + 0xd61], 0x44
jne 0x402bd6
cmp byte [esp + ebx + 0xd62], 0x52
jne 0x402bd6
cmp byte [esp + ebx + 0xd63], 0x49
jne 0x402bd6
cmp byte [esp + ebx + 0xd64], 0x56
jne 0x402bd6
cmp byte [esp + ebx + 0xd65], 0x45
jne 0x402bd6
cmp byte [esp + ebx + 0xd66], 0x24
jne 0x402bd6
cmp byte [esp + ebx + 0xd67], 0x24
jne 0x402b7d
mov byte [ebp + 0x40a18c], 0x24
inc ebp
mov byte [ebp + 0x40a18c], 0x44
inc ebp
mov byte [ebp + 0x40a18c], 0x52
inc ebp
mov byte [ebp + 0x40a18c], 0x49
inc ebp
mov byte [ebp + 0x40a18c], 0x56
inc ebp
mov byte [ebp + 0x40a18c], 0x45
inc ebp
mov byte [ebp + 0x40a18c], 0x24
inc ebp
add ebx, 7
mov byte [ebp + 0x40a18c], 0
jmp 0x402bd4
lea ecx, [esp + 0x130]
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 ebx, 6
mov ebp, ecx
mov cl, 1
cmp byte [esp + ebx + 0xd60], 0x24
jne 0x402cee
cmp byte [esp + ebx + 0xd61], 0x57
jne 0x402cee
cmp byte [esp + ebx + 0xd62], 0x49
jne 0x402cee
cmp byte [esp + ebx + 0xd63], 0x4e
jne 0x402cee
cmp byte [esp + ebx + 0xd64], 0x44
jne 0x402cee
cmp byte [esp + ebx + 0xd65], 0x49
jne 0x402cee
cmp byte [esp + ebx + 0xd66], 0x52
jne 0x402cee
cmp byte [esp + ebx + 0xd67], 0x24
jne 0x402cee
cmp byte [esp + ebx + 0xd68], 0x24
jne 0x402c95
mov byte [ebp + 0x40a18c], 0x24
inc ebp
mov byte [ebp + 0x40a18c], 0x57
inc ebp
mov byte [ebp + 0x40a18c], 0x49
inc ebp
mov byte [ebp + 0x40a18c], 0x4e
inc ebp
mov byte [ebp + 0x40a18c], 0x44
inc ebp
mov byte [ebp + 0x40a18c], 0x49
inc ebp
mov byte [ebp + 0x40a18c], 0x52
inc ebp
mov byte [ebp + 0x40a18c], 0x24
inc ebp
add ebx, 8
jmp 0x402d03
lea eax, [esp + 0x504]
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 ebx, 7
mov ebp, ecx
jmp 0x402d0a
test cl, cl
jne 0x402d0a
mov eax, dword [esp + 0x85a0]
inc ebp
mov cl, byte [ebx + eax]
mov byte [ebp + 0x40a18b], cl
mov byte [ebp + 0x40a18c], 0
mov edx, dword [esp + 0x85a0]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
inc ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebx, ecx
jl 0x402581
mov al, byte [0x4fe3d0]
pop edi
mov byte [ebp + 0x40a18c], 0
pop esi
pop ebp
cmp al, 1
pop ebx
jne 0x402d74
mov edx, dword [esp + 0x8590]
push 0x40a18c
push edx
lea eax, [esp + 0xa4c]
push str.OrgLine:__s_nNewLine:__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0xa44]
push 0
push str.9KGames_Regfix2.0__Debug_message_
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
add esp, 0x858c
ret