Function at 0x40ac1b
Capabilities:
Check for time delay via gettickcount
Create thread
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov ebx, ecx
mov byte [ebp - 1], dl
or edi, 0xffffffff
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xc], edi
call fcn.004067af
cmp byte [0x410c4e], 0
mov dword [ebp - 8], 0xbb8
je 0x40ac5a
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x410c50], eax
je 0x40ac61
mov dword [ebp - 8], 0x1770
lea eax, [ebp - 0x28]
xor esi, esi
push eax
push esi
mov ecx, ebx
call fcn.0040775d
test eax, eax
js 0x40ae8d
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ecx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov ecx, ebx
call fcn.0040a862
test eax, eax
js 0x40ae63
lea ecx, [ebp - 0x28]
or ebx, 0xffffffff
call fcn.00406d2f
cmp eax, 2
jle 0x40acd2
mov eax, dword [ebp - 0x28]
push 0x3a
pop ecx
cmp cx, word [eax + 2]
jne 0x40acd2
movzx ecx, word [eax]
push 0x19
pop edx
lea eax, [ecx - 0x61]
cmp ax, dx
ja 0x40acc7
lea ebx, [ecx - 0x61]
jmp 0x40acd2
lea eax, [ecx - 0x41]
cmp ax, dx
ja 0x40acd2
lea ebx, [ecx - 0x41]
cmp byte [ebp - 1], 0
je 0x40ae2b
test ebx, ebx
js 0x40aced
cmp byte [ebx + 0x410c34], 0
jne 0x40ae2b
push 0x18
call fcn.0040ee67
mov edi, eax
pop ecx
test edi, edi
je 0x40ad16
mov ecx, edi
call fcn.004067af
or dword [edi + 0x14], 0xffffffff
mov dword [edi + 0xc], 1
mov dword [edi + 0x10], 2
jmp 0x40ad18
mov edi, esi
test edi, edi
je 0x40ae60
lea ecx, [ebp - 0x28]
call fcn.0040705a
push eax
mov ecx, edi
call fcn.00406fe4
lock inc dword [edi + 0xc]
push esi
push esi
push edi
push 0x40ab80
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40adfc
push dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x40adbe
test ebx, ebx
js 0x40ad73
mov byte [ebx + 0x410c34], 1
mov eax, dword [edi + 0x14]
push dword [edi + 0x10]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [0x410048]
cmp eax, 0x410048
je 0x40adad
test byte [eax + 0x44], 1
je 0x40adad
cmp byte [eax + 0x41], 2
jb 0x40adad
push dword [edi]
push dword [edi + 0x10]
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0xe
pop ecx
call fcn.0040a6a7
xor esi, esi
mov ecx, edi
call fcn.0040ab48
mov edi, dword [ebp - 0xc]
jmp 0x40ae59
mov eax, dword [0x410048]
cmp eax, 0x410048
je 0x40adf2
test byte [eax + 0x44], 1
je 0x40adf2
cmp byte [eax + 0x41], 2
jb 0x40adf2
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov eax, dword [0x410048]
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0xf
pop ecx
call fcn.0040a6a7
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40adad
mov ecx, edi
call fcn.0040ab48
mov eax, dword [0x410048]
cmp eax, 0x410048
je 0x40adaf
test byte [eax + 0x44], 1
je 0x40adaf
cmp byte [eax + 0x41], 2
jb 0x40adaf
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x10
pop ecx
call fcn.0040a65d
jmp 0x40adaf
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test ebx, ebx
js 0x40ae59
sub eax, dword [ebp - 0x10]
cmp dword [ebp - 8], eax
sbb cl, cl
inc cl
mov byte [ebx + 0x410c34], cl
cmp edi, 0xffffffff
je 0x40ae63
jmp 0x40ae78
mov edi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40ae78
movzx esi, si
or esi, 0x80070000
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push esi
call fcn.0040a8c3
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea ecx, [ebp - 0x28]
call fcn.00406a9c
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret