Function at 0x407fb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x669c3e
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x71cf78]
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.00605fb0
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.00407c90
add esp, 4
test eax, eax
je 0x4080f3
push ecx
mov esi, esp
mov dword [ebp - 0x414], esi
call fcn.00423b74
mov ecx, eax
test ecx, ecx
je 0x408681
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.00402920
test al, al
jne 0x408088
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408070
sub ecx, edx
lea eax, [ebp - 0x410]
push ecx
push eax
mov ecx, esi
call fcn.00408780
mov dword [ebp - 4], 0xffffffff
call fcn.004086a0
add esp, 4
call fcn.00423b74
mov ecx, eax
test ecx, ecx
je 0x408681
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.00402920
test al, al
jne 0x408663
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4080d6
sub ecx, edx
lea eax, [ebp - 0x410]
push ecx
push eax
mov ecx, edi
call fcn.00408780
jmp 0x408663
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.00606110
add esp, 8
test eax, eax
je 0x408131
lea eax, [ebp - 0x410]
push 0x5c
push eax
call fcn.00606110
add esp, 8
mov byte [eax + 1], 0
lea eax, [ebp - 0x410]
push eax
call fcn.00407c90
add esp, 4
test eax, eax
je 0x408213
push ecx
mov esi, esp
mov dword [ebp - 0x414], esi
call fcn.00423b74
mov ecx, eax
test ecx, ecx
je 0x408681
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.00402920
test al, al
jne 0x4081a8
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408190
sub ecx, edx
lea eax, [ebp - 0x410]
push ecx
push eax
mov ecx, esi
call fcn.00408780
mov dword [ebp - 4], 0xffffffff
call fcn.004086a0
add esp, 4
call fcn.00423b74
mov ecx, eax
test ecx, ecx
je 0x408681
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.00402920
test al, al
jne 0x408663
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4081f6
sub ecx, edx
lea eax, [ebp - 0x410]
push ecx
push eax
mov ecx, edi
call fcn.00408780
jmp 0x408663
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.00407c70
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.00407c90
add esp, 0x14
test eax, eax
je 0x4082dd
call fcn.00423b74
mov ecx, eax
test ecx, ecx
je 0x408681
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.00402920
test al, al
jne 0x408663
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4082c0
sub ecx, edx
lea eax, [ebp - 0x410]
push ecx
push eax
mov ecx, edi
call fcn.00408780
jmp 0x408663
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.00407c70
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.00407c90
add esp, 0x14
test eax, eax
je 0x40840d
push ecx
mov esi, esp
mov dword [ebp - 0x414], esi
call fcn.00423b74
mov ecx, eax
test ecx, ecx
je 0x408681
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.00402920
test al, al
jne 0x40839f
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408387
sub ecx, edx
lea eax, [ebp - 0x410]
push ecx
push eax
mov ecx, esi
call fcn.00408780
mov dword [ebp - 4], 0xffffffff
call fcn.004086a0
add esp, 4
call fcn.00423b74
mov ecx, eax
test ecx, ecx
je 0x408681
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.00402920
test al, al
jne 0x408663
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4083f0
sub ecx, edx
lea eax, [ebp - 0x410]
push ecx
push eax
mov ecx, edi
call fcn.00408780
jmp 0x408663
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.00407c70
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.00407c90
add esp, 0x14
test eax, eax
je 0x408499
push ecx
lea eax, [ebp - 0x410]
mov ecx, esp
push eax
call fcn.00406f20
call fcn.004086a0
add esp, 4
lea eax, [ebp - 0x410]
mov ecx, edi
push eax
call fcn.00406f20
jmp 0x408663
call fcn.00423b74
mov ecx, eax
test ecx, ecx
je 0x408681
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x418], eax
push 0x68ffcf
lea ecx, [ebp - 0x418]
mov dword [ebp - 4], 7
call fcn.00402920
test al, al
jne 0x4084e3
push 0
push 0x68ffcf
lea ecx, [ebp - 0x418]
call fcn.00408780
lea eax, [ebp - 0x424]
mov dword [ebp - 4], 8
push eax
call fcn.00407790
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 0x408567
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x408552
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x408552
push edx
call fcn.00407700
add esp, 4
mov dword [ebp - 0x414], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x408547
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 0x408567
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x418]
call fcn.00408780
mov esi, dword [ebp - 0x418]
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 8
call fcn.00401fd0
push 0x68ffcf
push esi
call fcn.0062c66c
add esp, 8
test eax, eax
je 0x4085b2
push ecx
lea eax, [ebp - 0x418]
mov ecx, esp
push eax
call fcn.00406ef0
call fcn.004086a0
add esp, 4
lea eax, [ebp - 0x418]
mov ecx, edi
push eax
call fcn.00406ef0
jmp 0x408658
call fcn.00423b74
mov ecx, eax
test ecx, ecx
je 0x40868b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x414], eax
push 0x6900f0
lea ecx, [ebp - 0x414]
mov byte [ebp - 4], 0xa
call fcn.00402920
test al, al
jne 0x4085f9
push 0x40
push 0x6900f0
lea ecx, [ebp - 0x414]
call fcn.00408780
push 0
push 0x6900e4
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.00605fb0
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.00406f20
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.006027d7
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004020e0
push 0x80004005
call fcn.004020e0
int3