Function at 0x402520
Capabilities:
Get common file path

Disassembly:
sub esp, 0x30c
push ebx
push ebp
push esi
push edi
xor dl, dl
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], dl
mov byte [esp + 0x218], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x219]
mov byte [esp + 0x114], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x115]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x21c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea ecx, [esp + 0x218]
lea edx, [esp + 0x114]
push ecx
push str._skernel32.dll
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x114]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov ebp, eax
mov edi, str.sserddAcorPteG
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
mov ebx, dword [sym.imp.MSVCRT.dll__strrev]
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 + 0x10]
push ecx
call ebx
add esp, 4
lea edx, [esp + 0x10]
push edx
push ebp
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x40e84c], eax
mov edi, str.AsgnirtSevirDlacigoLteG
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
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 + 0x10]
push ecx
call ebx
add esp, 4
lea edx, [esp + 0x10]
push edx
push ebp
call dword [0x40e84c]
mov dword [0x40e848], eax
mov edi, str.ssecorPnepO
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
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 + 0x10]
push ecx
call ebx
add esp, 4
lea edx, [esp + 0x10]
push edx
push ebp
call dword [0x40e84c]
mov dword [0x40e840], eax
mov edi, str.tsriF23ssecorP
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
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 + 0x10]
push ecx
call ebx
add esp, 4
lea edx, [esp + 0x10]
push edx
push ebp
call dword [0x40e84c]
mov dword [0x40e83c], eax
mov edi, str.txeN23ssecorP
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
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 + 0x10]
push ecx
call ebx
add esp, 4
lea edx, [esp + 0x10]
push edx
push ebp
call dword [0x40e84c]
mov dword [0x40e838], eax
mov edi, str.AxetuMetaerC
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call ebx
add esp, 4
lea edx, [esp + 0x10]
push edx
push ebp
call dword [0x40e84c]
mov dword [0x40e834], eax
mov edi, str.AemaNeliFeludoMteG
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
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 + 0x10]
push ecx
call ebx
add esp, 4
lea edx, [esp + 0x10]
push edx
push ebp
call dword [0x40e84c]
mov dword [0x40e830], eax
mov edi, str.AeliFetaerC
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
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 + 0x10]
push ecx
call ebx
add esp, 4
lea edx, [esp + 0x10]
push edx
push ebp
call dword [0x40e84c]
mov dword [0x40e824], eax
mov edi, str.eliFdaeR
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
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 + 0x10]
push ecx
call ebx
add esp, 4
lea edx, [esp + 0x10]
push edx
push ebp
call dword [0x40e84c]
mov dword [0x40e820], eax
mov edi, str.eliFetirW
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
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 + 0x10]
push ecx
call ebx
add esp, 4
lea edx, [esp + 0x10]
push edx
push ebp
call dword [0x40e84c]
mov dword [0x40e81c], eax
mov edi, str.AeliFypoC
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
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 + 0x10]
push ecx
call ebx
add esp, 4
lea edx, [esp + 0x10]
push edx
push ebp
call dword [0x40e84c]
mov dword [0x40e818], eax
mov edi, str.AeliFtsriFdniF
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
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 + 0x10]
push ecx
call ebx
add esp, 4
lea edx, [esp + 0x10]
push edx
push ebp
call dword [0x40e84c]
mov dword [0x40e814], eax
mov edi, str.AeliFtxeNdniF
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
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 + 0x10]
push ecx
call ebx
add esp, 4
lea edx, [esp + 0x10]
push edx
push ebp
call dword [0x40e84c]
mov dword [0x40e810], eax
mov edi, str.daerhTetaerC
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
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 + 0x10]
push ecx
call ebx
add esp, 4
lea edx, [esp + 0x10]
push edx
push ebp
call dword [0x40e84c]
mov dword [0x40e80c], eax
mov edi, str.AeldnaHeludoMteG
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
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 + 0x10]
push ecx
call ebx
add esp, 4
lea edx, [esp + 0x10]
push edx
push ebp
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x40e828], eax
lea eax, [esp + 0x218]
push eax
push str._sAdvapi32.dll
lea ecx, [esp + 0x11c]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x114]
push edx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov ebp, eax
mov edi, str.AxEyeKnepOgeR
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
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 + 0x10]
push ecx
call ebx
add esp, 4
lea edx, [esp + 0x10]
push edx
push ebp
call dword [0x40e84c]
mov dword [0x40e858], eax
mov edi, str.AxEeulaVyreuQgeR
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
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 + 0x10]
push ecx
call ebx
add esp, 4
lea edx, [esp + 0x10]
push edx
push ebp
call dword [0x40e84c]
mov dword [0x40e854], eax
mov edi, str.AeulaVmunEgeR
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
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 + 0x10]
push ecx
call ebx
add esp, 4
lea edx, [esp + 0x10]
push edx
push ebp
call dword [0x40e84c]
mov dword [0x40e850], eax
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x118]
push str._sDbghelp.dll
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x114]
push edx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov ebp, eax
mov edi, str.eliFroFeerThcraeS
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
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 + 0x10]
push ecx
call ebx
add esp, 4
lea edx, [esp + 0x10]
push edx
push ebp
call dword [0x40e84c]
mov dword [0x40e844], eax
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x118]
push str._sUser32.dll
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x114]
push edx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov ebp, eax
mov edi, str.swodniWmunE
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
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 + 0x10]
push ecx
call ebx
add esp, 4
lea edx, [esp + 0x10]
push edx
push ebp
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
pop edi
pop esi
pop ebp
mov dword [0x40e82c], eax
pop ebx
add esp, 0x30c
ret