Function at 0x406190
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52f7c6
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x58deec]
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 esi, dword [ebp + 8]
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x40f]
push ebx
mov dword [ebp - 0x414], ebx
push eax
mov byte [ebp - 0x410], bl
call fcn.005160e0
add esp, 0xc
lea ecx, [ebp - 0x410]
push ecx
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [ebp - 0x410]
push edx
call fcn.004058f0
add esp, 4
test eax, eax
je 0x406239
push ecx
lea eax, [ebp - 0x410]
mov ecx, esp
mov dword [ebp - 0x420], esp
push eax
call fcn.00405830
call fcn.00405460
add esp, 4
lea ecx, [ebp - 0x410]
push ecx
mov ecx, esi
call fcn.00405830
jmp 0x4064e1
push 0x400
lea edx, [ebp - 0x410]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x410]
push 0x5c
push eax
call fcn.00516160
add esp, 8
test eax, eax
je 0x406275
lea ecx, [ebp - 0x410]
push 0x5c
push ecx
call fcn.00516160
add esp, 8
mov byte [eax + 1], bl
lea edx, [ebp - 0x410]
push edx
call fcn.004058f0
add esp, 4
test eax, eax
jne 0x406209
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea edx, [ebp - 0x414]
push edx
push str.SoftwareMyRxjh
push reloc.WS2_32.dll_accept
call edi
mov edx, dword [ebp - 0x414]
lea eax, [ebp - 0x41c]
push eax
lea ecx, [ebp - 0x410]
push ecx
push str.Path
push edx
mov dword [ebp - 0x41c], 0x400
call fcn.004052e0
add esp, 0x10
test eax, eax
je 0x4062d7
mov byte [ebp - 0x410], bl
lea eax, [ebp - 0x410]
push eax
call fcn.004058f0
add esp, 4
test eax, eax
jne 0x406226
lea edx, [ebp - 0x414]
push edx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallD7FAEC78_D585_4E20_8296_154AAEEE1B03_is1
push reloc.WS2_32.dll_bind
call edi
mov edx, dword [ebp - 0x414]
lea eax, [ebp - 0x41c]
push eax
lea ecx, [ebp - 0x410]
push ecx
push str.InstallLocation
push edx
mov dword [ebp - 0x41c], 0x400
call fcn.004052e0
add esp, 0x10
test eax, eax
je 0x406337
mov byte [ebp - 0x410], bl
lea eax, [ebp - 0x410]
push eax
call fcn.004058f0
add esp, 4
test eax, eax
je 0x40637a
push ecx
lea edx, [ebp - 0x410]
mov ecx, esp
mov dword [ebp - 0x420], esp
push edx
call fcn.00405830
call fcn.00405460
add esp, 4
lea eax, [ebp - 0x410]
push eax
mov ecx, esi
call fcn.00405830
jmp 0x4064e1
lea ecx, [ebp - 0x414]
push ecx
push str.SoftwareBAKEICEBK_LOGINRXJHGamepath
push reloc.WS2_32.dll_accept
call edi
mov ecx, dword [ebp - 0x414]
lea edx, [ebp - 0x41c]
push edx
lea eax, [ebp - 0x410]
push eax
push str.Gamepath
push ecx
mov dword [ebp - 0x41c], 0x400
call fcn.004052e0
add esp, 0x10
cmp eax, ebx
je 0x4063c3
mov byte [ebp - 0x410], bl
lea edx, [ebp - 0x410]
push edx
call fcn.004058f0
add esp, 4
test eax, eax
jne 0x406209
push 0x5409a6
lea ecx, [ebp - 0x418]
call fcn.00405830
lea edx, [ebp - 0x424]
push edx
mov dword [ebp - 4], ebx
call fcn.00405f80
add esp, 4
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 1
call fcn.004056a0
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], bl
call fcn.00401690
lea eax, [ebp - 0x418]
push 0x5409a6
push eax
call fcn.00405400
add esp, 8
test al, al
je 0x406470
mov eax, dword [ebp - 0x418]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x420], esp
mov edi, esp
push eax
call fcn.00405390
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00405460
mov eax, dword [ebp - 0x418]
add eax, 0xfffffff0
push eax
call fcn.00405390
add esp, 8
add eax, 0x10
mov dword [esi], eax
jmp 0x4064d6
push 0x5409d0
lea ecx, [ebp - 0x424]
call fcn.00405830
mov eax, dword [eax]
push ebx
push 0x5409c8
push eax
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x424]
call fcn.00401690
push 0x400
lea ecx, [ebp - 0x410]
push ebx
push ecx
call fcn.005160e0
add esp, 0xc
lea edx, [ebp - 0x410]
push edx
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x410]
push eax
mov ecx, esi
call fcn.00405830
lea ecx, [ebp - 0x418]
call fcn.00401690
mov eax, esi
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.005156a7
mov esp, ebp
pop ebp
ret