Function at 0x401000
Capabilities:
Check for time delay via gettickcount
Check if file exists
Create directory
Create thread
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x15cc
call fcn.00404d80
push ebx
push esi
push edi
mov ecx, 0x2ed
xor eax, eax
lea edi, [ebp - 0xdcc]
and byte [ebp - 0x114], al
push 0x40
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
and byte [ebp - 0x218], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x217]
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call fcn.00404cbc
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov ebx, str.SePSilentUpdate_Semaphore
push ebx
push 1
push 0
mov dword [ebp - 0xc], eax
push dword [ebp - 8]
call edi
test eax, eax
mov dword [ebp - 4], eax
je 0x401460
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4010bd
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 4], 0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
sub eax, dword [ebp - 0xc]
cmp eax, 0xea60
jae 0x4010bd
push ebx
push 1
push 0
push dword [ebp - 8]
jmp 0x401078
lea eax, [ebp - 0x114]
push eax
push 0x104
call fcn.0040407e
pop ecx
lea eax, [ebp - 0x114]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4010ff
push dword [ebp - 8]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x114]
push eax
call fcn.00401664
pop ecx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x114]
push 0x80
push eax
call ebx
lea edi, [ebp - 0x114]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ebp + ecx - 0x115], 0x5c
je 0x40115b
mov edi, 0x40605c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x114]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
lea edi, [ebp - 0x114]
xor eax, eax
lea edx, [ebp - 0x218]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x114]
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]
mov edi, str.user.ini
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 edx, [ebp - 0x218]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x406040
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, 0x2ed
xor eax, eax
lea edi, [ebp - 0xdcc]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x21c], 4
push eax
call esi
cmp eax, 0xffffffff
jne 0x40126a
lea eax, [ebp - 0x218]
push eax
call esi
cmp eax, 0xffffffff
jne 0x401231
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x114]
push eax
jmp 0x401208
lea edi, [ebp - 0x218]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0xcc8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 0x21c], 1
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]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [ebp - 0xdcc]
push eax
call fcn.00401f7b
lea eax, [ebp - 0xdcc]
push eax
call fcn.0040185e
pop ecx
test eax, eax
pop ecx
jne 0x4012b5
test byte [ebp - 0x21c], 1
je 0x401466
lea eax, [ebp - 0x218]
push 0x80
push eax
call ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4011e2
test byte [ebp - 0x21c], 4
je 0x4012d3
lea eax, [ebp - 0xdcc]
push eax
call fcn.00401bdf
test eax, eax
pop ecx
jne 0x401405
test byte [ebp - 0x21c], 0x20
je 0x40136f
mov edx, 0x100
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x15cc]
rep stosd dword es:[edi], eax
mov ecx, edx
lea edi, [ebp - 0x11cc]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x11cc]
mov edi, 0x400
push eax
push edi
call fcn.0040407e
pop ecx
test eax, eax
pop ecx
jbe 0x401341
lea eax, [ebp - 0x15cc]
push edi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x401341
lea eax, [ebp - 0x11cc]
push eax
lea eax, [ebp - 0x15cc]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
test eax, eax
pop ecx
jne 0x40136f
cmp dword [ebp - 0x834], 0
jbe 0x40136f
lea eax, [ebp - 0x114]
push eax
call esi
cmp eax, 0xffffffff
jne 0x401295
dec dword [ebp - 0x834]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401341
lea eax, [ebp - 0xdcc]
push eax
call fcn.00402a49
test eax, eax
pop ecx
jne 0x40138e
test byte [ebp - 0x21c], 1
je 0x4013e8
jmp 0x401295
test byte [ebp - 0x21c], 1
je 0x4013a8
lea eax, [ebp - 0xdcc]
push eax
call fcn.00401bdf
test eax, eax
pop ecx
jne 0x401405
test byte [ebp - 0x21c], 4
jne 0x401417
test byte [ebp - 0x21c], 0x20
jne 0x40142a
cmp dword [ebp - 0x834], 0
jbe 0x40142a
lea eax, [ebp - 0x114]
push eax
call esi
cmp eax, 0xffffffff
jne 0x401295
dec dword [ebp - 0x834]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4013ba
lea eax, [ebp - 0x114]
push 0x80
push eax
call ebx
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x401466
lea eax, [ebp - 0xdcc]
push eax
call fcn.004019d5
pop ecx
jmp 0x4014a0
mov eax, dword [ebp - 0x834]
imul eax, eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x10]
xor esi, esi
push eax
lea eax, [ebp - 0xdcc]
push esi
push eax
push 0x4014d8
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [ebp - 0x830], esi
jne 0x401466
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x830], 0
je 0x40144d
jmp 0x401466
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, 0x80
lea eax, [ebp - 0x114]
push edi
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x114]
push eax
call esi
lea eax, [ebp - 0x828]
push eax
call esi
lea eax, [ebp - 0x218]
push edi
push eax
call ebx
lea eax, [ebp - 0x218]
push eax
call esi
mov eax, dword [0x407a40]
pop edi
pop esi
pop ebx
test eax, eax
je 0x4014ba
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [0x407a40], 0
cmp dword [ebp - 4], 0
je 0x4014c9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 8]
call fcn.00404d57
pop ecx
xor eax, eax
leave
ret 0x10