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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
or esi, 0xffffffff
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], esi
call fcn.0106d68a
cmp byte [0x1074e11], 0
mov dword [ebp - 8], 0xbb8
je 0x106b470
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1074e14], eax
je 0x106b477
mov dword [ebp - 8], 0x1770
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
xor ebx, ebx
push ebx
call fcn.010691b0
test eax, eax
jl 0x106b6aa
push edi
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 0x10], eax
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.0106b3cc
test eax, eax
jl 0x106b67c
lea ecx, [ebp - 0x1c]
call fcn.0106d755
cmp eax, 2
jle 0x106b4ee
mov eax, dword [ebp - 0x1c]
push 0x3a
pop ecx
cmp cx, word [eax + 2]
jne 0x106b4ee
movzx eax, word [eax]
lea ecx, [eax - 0x61]
cmp cx, 0x19
ja 0x106b4df
movzx esi, ax
sub esi, 0x61
jmp 0x106b4ee
lea ecx, [eax - 0x41]
cmp cx, 0x19
ja 0x106b4ee
movzx esi, ax
sub esi, 0x41
cmp byte [ebp + 0xc], bl
je 0x106b649
cmp esi, ebx
jl 0x106b507
cmp byte [esi + 0x107527c], bl
jne 0x106b649
push 0x18
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
cmp eax, ebx
je 0x106b51e
mov ecx, eax
call fcn.0106a01f
mov edi, eax
jmp 0x106b520
xor edi, edi
cmp edi, ebx
je 0x106b67c
lea ecx, [ebp - 0x1c]
call fcn.0106e36a
push eax
mov ecx, edi
call fcn.0106dd17
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push ebx
push ebx
push edi
push 0x106ad2b
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
je 0x106b60f
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0xc], 0
jne 0x106b5cd
test esi, esi
jl 0x106b581
mov byte [esi + 0x107527c], 1
mov eax, dword [edi + 0x14]
push dword [edi + 0x10]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [0x1072c98]
cmp eax, 0x1072c98
je 0x106b640
test byte [eax + 0x3c], 1
je 0x106b640
cmp byte [eax + 0x39], 2
jb 0x106b640
push dword [edi]
push dword [edi + 0x10]
push 0x1011500
push 0xe
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.01069e15
jmp 0x106b640
mov eax, dword [0x1072c98]
cmp eax, 0x1072c98
je 0x106b605
test byte [eax + 0x3c], 1
je 0x106b605
cmp byte [eax + 0x39], 2
jb 0x106b605
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov eax, dword [0x1072c98]
push 0x1011500
push 0xf
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.01069e15
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x106b640
mov ecx, edi
call fcn.0106ad04
mov eax, dword [0x1072c98]
cmp eax, 0x1072c98
je 0x106b640
test byte [eax + 0x3c], 1
je 0x106b640
cmp byte [eax + 0x39], 2
jb 0x106b640
push 0x1011500
push 0x10
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.0105e5ad
mov ecx, edi
call fcn.0106ad04
jmp 0x106b674
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push dword [ebp - 0x1c]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
call edi
test esi, esi
jl 0x106b674
sub eax, ebx
cmp dword [ebp - 8], eax
sbb al, al
inc al
mov byte [esi + 0x107527c], al
cmp dword [ebp - 4], 0xffffffff
jne 0x106b692
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x106b694
and eax, 0xffff
or eax, 0x80070000
jmp 0x106b694
xor eax, eax
push eax
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0106afea
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
pop edi
lea ecx, [ebp - 0x1c]
call fcn.0106de0a
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 8