Function at 0x41e2c0
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x414
push ebp
mov ebp, dword [esp + 0x424]
xor edx, edx
cmp ebp, 0x7e
push esi
mov esi, dword [0x467cc0]
setge dl
shl ebp, 6
push edi
mov dword [esp + 0x10], edx
mov eax, dword [esi + ebp + 0x3c]
test eax, eax
jne 0x41e54e
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21d]
mov byte [esp + 0x21c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
test edx, edx
stosb byte es:[edi], al
je 0x41e43b
mov eax, dword [esi + 0x1fbc]
test eax, eax
jne 0x41e42c
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x119]
mov byte [esp + 0x118], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x118]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x14]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
lea edx, [esp + 0x324]
push 0
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__splitpath]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
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]
lea edi, [esp + 0x320]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call esi
push str.resotheremotion.mif
lea ecx, [esp + 0x220]
push 0x103
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
mov ecx, dword [0x467cc8]
add esp, 0xc
lea eax, [esp + 0x21c]
mov edx, dword [ecx]
push eax
call dword [edx]
mov ecx, dword [0x467cc0]
lea edx, [esp + 0x118]
push edx
mov dword [ecx + 0x1fbc], eax
call esi
mov esi, dword [0x467cc0]
mov eax, dword [esi + 0x1fbc]
mov dword [esi + ebp + 0x3c], eax
jmp 0x41e548
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x119]
mov byte [esp + 0x118], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x118]
push ecx
push 0x104
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [esp + 0x14]
push 0x104
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
lea eax, [esp + 0x324]
push 0
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__splitpath]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
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]
lea edi, [esp + 0x320]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call esi
mov ecx, dword [0x467cc0]
lea eax, [esp + 0x21c]
lea edx, [ecx + ebp + 0x10]
push edx
push str...Reschatemotion_s
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
mov ecx, dword [0x467cc8]
add esp, 0x10
lea eax, [esp + 0x21c]
mov edx, dword [ecx]
push eax
call dword [edx]
mov ecx, dword [0x467cc0]
lea edx, [esp + 0x118]
mov dword [ecx + ebp + 0x3c], eax
push edx
call esi
mov esi, dword [0x467cc0]
mov eax, dword [esi + ebp + 0x3c]
test eax, eax
je 0x41e5ae
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x41e56a
mov eax, dword [esp + 0x42c]
lea edx, [eax - 0x7e]
jmp 0x41e58b
mov esi, dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov eax, edx
xor edx, edx
shr eax, 4
div esi
mov esi, dword [0x467cc0]
mov ecx, dword [0x467cc8]
push 0
push edx
mov edx, dword [esp + 0x430]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x430]
push edx
mov edx, dword [esi + ebp + 0x3c]
push edx
call dword [eax + 4]
pop edi
pop esi
pop ebp
add esp, 0x414
ret 0xc