Function at 0x407fc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x660c1e
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x714f78]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x410]
push 0x400
push 0
push eax
mov dword [ebp - 0x424], edi
call fcn.00605e30
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x410]
push eax
call fcn.00407ca0
add esp, 4
test eax, eax
je 0x408103
push ecx
mov esi, esp
mov dword [ebp - 0x414], esi
call fcn.00423a0b
mov ecx, eax
test ecx, ecx
je 0x408691
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x410]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.00402ad0
test al, al
jne 0x408098
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408080
sub ecx, edx
lea eax, [ebp - 0x410]
push ecx
push eax
mov ecx, esi
call fcn.00408790
mov dword [ebp - 4], 0xffffffff
call fcn.004086b0
add esp, 4
call fcn.00423a0b
mov ecx, eax
test ecx, ecx
je 0x408691
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x410]
mov dword [ebp - 4], 1
push eax
mov ecx, edi
call fcn.00402ad0
test al, al
jne 0x408673
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4080e6
sub ecx, edx
lea eax, [ebp - 0x410]
push ecx
push eax
mov ecx, edi
call fcn.00408790
jmp 0x408673
push 0x400
lea eax, [ebp - 0x410]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x410]
push 0x5c
push eax
call fcn.00605f90
add esp, 8
test eax, eax
je 0x408141
lea eax, [ebp - 0x410]
push 0x5c
push eax
call fcn.00605f90
add esp, 8
mov byte [eax + 1], 0
lea eax, [ebp - 0x410]
push eax
call fcn.00407ca0
add esp, 4
test eax, eax
je 0x408223
push ecx
mov esi, esp
mov dword [ebp - 0x414], esi
call fcn.00423a0b
mov ecx, eax
test ecx, ecx
je 0x408691
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x410]
mov dword [ebp - 4], 2
push eax
mov ecx, esi
call fcn.00402ad0
test al, al
jne 0x4081b8
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4081a0
sub ecx, edx
lea eax, [ebp - 0x410]
push ecx
push eax
mov ecx, esi
call fcn.00408790
mov dword [ebp - 4], 0xffffffff
call fcn.004086b0
add esp, 4
call fcn.00423a0b
mov ecx, eax
test ecx, ecx
je 0x408691
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x410]
mov dword [ebp - 4], 3
push eax
mov ecx, edi
call fcn.00402ad0
test al, al
jne 0x408673
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408206
sub ecx, edx
lea eax, [ebp - 0x410]
push ecx
push eax
mov ecx, edi
call fcn.00408790
jmp 0x408673
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 0x420]
push eax
push str.SoftwareMyRxjh
push reloc.WS2_32.dll_accept
call esi
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0x400
push eax
lea eax, [ebp - 0x410]
push eax
push str.Path
push dword [ebp - 0x420]
call fcn.00407c80
movzx ecx, byte [ebp - 0x410]
xor edx, edx
test eax, eax
lea eax, [ebp - 0x410]
push eax
cmovne ecx, edx
mov byte [ebp - 0x410], cl
call fcn.00407ca0
add esp, 0x14
test eax, eax
je 0x4082ed
call fcn.00423a0b
mov ecx, eax
test ecx, ecx
je 0x408691
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x410]
mov dword [ebp - 4], 4
push eax
mov ecx, edi
call fcn.00402ad0
test al, al
jne 0x408673
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4082d0
sub ecx, edx
lea eax, [ebp - 0x410]
push ecx
push eax
mov ecx, edi
call fcn.00408790
jmp 0x408673
lea eax, [ebp - 0x420]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallD7FAEC78_D585_4E20_8296_154AAEEE1B03_is1
push reloc.WS2_32.dll_bind
call esi
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0x400
push eax
lea eax, [ebp - 0x410]
push eax
push str.InstallLocation
push dword [ebp - 0x420]
call fcn.00407c80
movzx ecx, byte [ebp - 0x410]
xor edx, edx
test eax, eax
lea eax, [ebp - 0x410]
push eax
cmovne ecx, edx
mov byte [ebp - 0x410], cl
call fcn.00407ca0
add esp, 0x14
test eax, eax
je 0x40841d
push ecx
mov esi, esp
mov dword [ebp - 0x414], esi
call fcn.00423a0b
mov ecx, eax
test ecx, ecx
je 0x408691
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x410]
mov dword [ebp - 4], 5
push eax
mov ecx, esi
call fcn.00402ad0
test al, al
jne 0x4083af
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408397
sub ecx, edx
lea eax, [ebp - 0x410]
push ecx
push eax
mov ecx, esi
call fcn.00408790
mov dword [ebp - 4], 0xffffffff
call fcn.004086b0
add esp, 4
call fcn.00423a0b
mov ecx, eax
test ecx, ecx
je 0x408691
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x410]
mov dword [ebp - 4], 6
push eax
mov ecx, edi
call fcn.00402ad0
test al, al
jne 0x408673
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408400
sub ecx, edx
lea eax, [ebp - 0x410]
push ecx
push eax
mov ecx, edi
call fcn.00408790
jmp 0x408673
lea eax, [ebp - 0x420]
push eax
push str.SoftwareBAKEICEBK_LOGINRXJHGamepath
push reloc.WS2_32.dll_accept
call esi
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0x400
push eax
lea eax, [ebp - 0x410]
push eax
push str.Gamepath
push dword [ebp - 0x420]
call fcn.00407c80
movzx ecx, byte [ebp - 0x410]
xor edx, edx
test eax, eax
lea eax, [ebp - 0x410]
push eax
cmovne ecx, edx
mov byte [ebp - 0x410], cl
call fcn.00407ca0
add esp, 0x14
test eax, eax
je 0x4084a9
push ecx
lea eax, [ebp - 0x410]
mov ecx, esp
push eax
call fcn.00406f30
call fcn.004086b0
add esp, 4
lea eax, [ebp - 0x410]
mov ecx, edi
push eax
call fcn.00406f30
jmp 0x408673
call fcn.00423a0b
mov ecx, eax
test ecx, ecx
je 0x408691
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x418], eax
push 0x686f7f
lea ecx, [ebp - 0x418]
mov dword [ebp - 4], 7
call fcn.00402ad0
test al, al
jne 0x4084f3
push 0
push 0x686f7f
lea ecx, [ebp - 0x418]
call fcn.00408790
lea eax, [ebp - 0x424]
mov dword [ebp - 4], 8
push eax
call fcn.004077a0
add esp, 4
mov ecx, dword [eax]
mov esi, dword [ebp - 0x418]
mov byte [ebp - 4], 9
lea edx, [ecx - 0x10]
lea ebx, [esi - 0x10]
cmp edx, ebx
je 0x408577
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x408562
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x408562
push edx
call fcn.00407710
add esp, 4
mov dword [ebp - 0x414], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x408557
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x414]
lea esi, [eax + 0x10]
mov dword [ebp - 0x418], esi
jmp 0x408577
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x418]
call fcn.00408790
mov esi, dword [ebp - 0x418]
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 8
call fcn.00401fd0
push 0x686f7f
push esi
call fcn.00623a86
add esp, 8
test eax, eax
je 0x4085c2
push ecx
lea eax, [ebp - 0x418]
mov ecx, esp
push eax
call fcn.00406f00
call fcn.004086b0
add esp, 4
lea eax, [ebp - 0x418]
mov ecx, edi
push eax
call fcn.00406f00
jmp 0x408668
call fcn.00423a0b
mov ecx, eax
test ecx, ecx
je 0x40869b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x414], eax
push 0x6870a0
lea ecx, [ebp - 0x414]
mov byte [ebp - 4], 0xa
call fcn.00402ad0
test al, al
jne 0x408609
push 0x40
push 0x6870a0
lea ecx, [ebp - 0x414]
call fcn.00408790
push 0
push 0x687094
push dword [ebp - 0x414]
mov byte [ebp - 4], 8
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x414]
call fcn.00401fd0
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.00605e30
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x410]
mov ecx, edi
push eax
call fcn.00406f30
lea ecx, [ebp - 0x418]
call fcn.00401fd0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0060266e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004020e0
push 0x80004005
call fcn.004020e0
int3