Function at 0x1009053a
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x240
mov eax, 0x100e7a49
call fcn.10001b03
mov eax, edx
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x224], ecx
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 0x20]
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x22c], ecx
mov ecx, dword [ebp + 0x10]
or dword [esi], 0xffffffff
mov dword [ebp - 0x240], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x244], ecx
mov ecx, dword [ebp + 0x18]
push eax
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x238], esi
call fcn.10047e8b
mov dword [ebp - 0x230], eax
cmp byte [0x10181cd6], bl
je 0x1009067a
test edi, edi
jne 0x100905b6
push 0x21
pop eax
jmp 0x1009089f
mov eax, dword [vtable.VprocessGlobals.0]
mov ecx, dword [ebp - 0x240]
mov edi, dword [eax + 0x24]
call fcn.1009021b
mov ecx, dword [ebp - 0x22c]
mov esi, eax
call fcn.100901f5
push esi
push eax
push dword [ebp - 0x230]
push dword [ebp - 0x234]
push dword [ebp - 0x224]
push str.lockFile_systemLock:_try_lock_file_s_mode__s_0x_x__s__s_n
push 5
push 0
push 0x1017e06c
call edi
mov edi, dword [ebp - 0x23c]
add esp, 0x24
mov ecx, edi
push dword [ebp - 0x244]
push dword [ebp - 0x22c]
call fcn.10047e8b
push dword [ebp - 0x224]
mov esi, eax
mov eax, dword [vtable.VprocessGlobals.0]
test esi, esi
je 0x1009065b
push str.lock_fail
push str.lockFile_systemLock:__s_file_s_n
push 5
push 0
mov ebx, 0x1017e06c
push ebx
call dword [eax + 0x24]
mov eax, dword [vtable.VprocessGlobals.0]
add esp, 0x18
mov ecx, ebx
push esi
push 0
call dword [eax + 0xc]
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
jmp 0x100905ae
push str.got_lock
push str.lockFile_systemLock:__s_file_s_n
push 5
push 0
push 0x1017e06c
call dword [eax + 0x24]
mov esi, dword [ebp - 0x238]
add esp, 0x18
mov ecx, dword [ebp - 0x224]
mov eax, 0x100ee700
test ecx, ecx
cmovne eax, ecx
lea ecx, [ebp - 0x228]
push eax
call fcn.10047e8b
and dword [ebp - 4], 0
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x220]
call fcn.10047e8b
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x228]
lea ecx, [ecx - 0xc]
call sym.fpsrvutl.dll_Ordinal_5727
mov edx, dword [ebp - 0x22c]
lea eax, [ebp - 0x228]
mov ecx, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x23c]
push eax
push dword [ebp + 8]
call fcn.10047e8b
mov ecx, dword [ebp - 0x240]
call fcn.1009021b
mov ecx, dword [ebp - 0x22c]
push eax
call fcn.100901f5
push eax
push dword [ebp - 0x230]
mov eax, dword [vtable.VprocessGlobals.0]
push dword [ebp - 0x234]
push dword [ebp - 0x224]
push str.lockFile:_try_lock__file_s_mode__s_0x_x__s__s_n
push 5
push 0
push 0x1017e06c
call dword [eax + 0x24]
add esp, 0x24
cmp dword [ebp - 0x240], 0
jne 0x10090812
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x244], 0
je 0x1009076b
call dword [sym.imp.kernel32.dll_GetTickCount]
sub eax, dword [ebp - 0x234]
cmp eax, dword [ebp - 0x244]
jae 0x10090804
push 0xffffffffffffffff
push dword [ebp - 0x228]
lea eax, [ebp - 0x220]
push dword [ebp - 0x248]
push dword [ebp - 0x24c]
push dword [ebp - 0x238]
push dword [ebp - 0x23c]
push eax
call fcn.10047e8b
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x10090802
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
mov ecx, ebx
sub ecx, 0x20
je 0x100907ca
sub ecx, 1
je 0x100907ca
sub ecx, 3
je 0x100907ca
sub ecx, 0x48
je 0x100907ca
sub ecx, 0x32
je 0x100907ca
sub ecx, 9
je 0x100907ca
xor cl, cl
jmp 0x100907cc
mov cl, 1
mov eax, ebx
sub eax, 0x50
je 0x100907dc
sub eax, 0x67
je 0x100907dc
xor al, al
jmp 0x100907de
mov al, 1
test cl, cl
jne 0x100907f2
test al, al
je 0x10090804
test dword [ebp - 0x230], 0x400
jne 0x10090804
push 0x1f4
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x1009074a
xor ebx, ebx
cmp dword [esi], 0xffffffff
jne 0x1009084d
test ebx, ebx
jne 0x1009084d
push 0x21
pop ebx
jmp 0x1009084d
push 0xffffffffffffffff
push dword [ebp - 0x228]
lea eax, [ebp - 0x220]
push dword [ebp - 0x248]
push dword [ebp - 0x24c]
push dword [ebp - 0x238]
push dword [ebp - 0x23c]
push eax
call fcn.10047e8b
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x1009084d
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
push dword [ebp - 0x224]
cmp dword [esi], 0xffffffff
mov ecx, str.got_lock
mov eax, str.lock_fail
cmovne eax, ecx
push eax
mov eax, dword [vtable.VprocessGlobals.0]
push str.lockFile:__s_file_s_n
push 5
push 0
push 0x1017e06c
call dword [eax + 0x24]
add esp, 0x18
test edi, edi
je 0x10090892
mov eax, dword [esi]
mov dword [edi + 0xc], eax
cmp dword [esi], 0xffffffff
jne 0x10090892
mov ecx, edi
call sym.fpsrvutl.dll_Ordinal_571
lea ecx, [ebp - 0x220]
call fcn.100058ed
mov eax, ebx
call fcn.10001b39
ret 0x1c