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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3a4
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x268]
mov ecx, dword [eax]
lea edx, [ebp - 0x3a4]
push edx
xor edi, edi
push eax
mov dword [ebp - 0x38c], edi
call dword [ecx + 0x1c]
cmp dword [ebp - 0x3a0], edi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
jl 0x1050b2f
cmp dword [esi + 0x250], edi
je 0x1050b55
mov dword [esi + 0x248], edi
lea edi, [esi + 0x240]
mov eax, dword [edi]
test eax, eax
je 0x1050b47
push eax
call ebx
and dword [edi], 0
mov eax, dword [ebp - 0x3a0]
mov dword [ebp - 0x38c], eax
xor edi, edi
mov eax, dword [ebp - 0x3a4]
sub eax, edi
je 0x1050c15
dec eax
je 0x1050c03
dec eax
je 0x1050be7
dec eax
je 0x1050ba0
dec eax
je 0x1050b91
dec eax
je 0x1050b85
mov dword [ebp - 0x388], 0x2779
jmp 0x1050c6f
mov dword [ebp - 0x388], 0x2778
jmp 0x1050c0d
mov dword [ebp - 0x388], 0x2777
jmp 0x1050c6f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x18]
cmp eax, 0x1d4c0
jbe 0x1050bd8
mov dword [esi + 0x248], edi
add esi, 0x240
mov eax, dword [esi]
mov dword [ebp - 0x388], 0x277a
cmp eax, edi
je 0x1050bd1
push eax
call ebx
mov dword [esi], edi
push 0x1006b90
jmp 0x1050c4b
mov dword [ebp - 0x388], 0x2775
jmp 0x1050c6f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x18]
cmp eax, 0x1d4c0
ja 0x1050c25
mov dword [ebp - 0x388], 0x2776
jmp 0x1050c6f
mov dword [ebp - 0x388], 0x277a
mov dword [esi + 0x248], edi
jmp 0x1050c6f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x18]
cmp eax, 0x1d4c0
jbe 0x1050c65
mov dword [esi + 0x248], edi
add esi, 0x240
mov eax, dword [esi]
mov dword [ebp - 0x388], 0x277a
cmp eax, edi
je 0x1050c46
push eax
call ebx
mov dword [esi], edi
push 0x1006b58
mov eax, 0x80072efd
push 2
mov dword [ebp - 0x38c], eax
mov dword [ebp - 0x3a0], eax
call fcn.01055bad
jmp 0x1050c6f
mov dword [ebp - 0x388], 0x2774
cmp dword [ebp - 0x3a0], edi
je 0x1050c98
push dword [ebp - 0x3a0]
push 0x1006af8
push 2
call fcn.01055c8a
add esp, 0xc
push dword [ebp - 0x3a0]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x39c]
mov ebx, dword [sym.imp.USER32.dll_LoadStringW]
mov esi, 0x100
cmp eax, 0xffffffff
jne 0x1050dca
lea edi, [esi - 0x80]
push edi
lea eax, [ebp - 0x104]
push eax
push 0x26e8
push dword [0x1073960]
call ebx
test eax, eax
jne 0x1050ce0
push 0x1007904
push edi
lea eax, [ebp - 0x104]
push eax
call fcn.01035831
xor edi, edi
push esi
lea eax, [ebp - 0x384]
push eax
push dword [ebp - 0x388]
push dword [0x1073960]
call ebx
test eax, eax
je 0x1050d95
lea eax, [ebp - 0x384]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x1050d09
sub eax, edx
sar eax, 1
mov ecx, eax
lea eax, [ebp - 0x104]
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
cmp si, di
jne 0x1050d22
sub eax, edx
sar eax, 1
lea esi, [eax + ecx + 0x21]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x1050d95
push dword [ebp - 0x398]
lea eax, [ebp - 0x184]
push 0x40
push eax
call fcn.010580d2
test eax, eax
jl 0x1050d8e
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x384]
push eax
push esi
push ebx
call fcn.0103592d
add esp, 0x14
push ebx
call fcn.01055264
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
mov ecx, dword [ebp - 0x39c]
cmp ecx, edi
pop edi
pop esi
pop ebx
jne 0x1050da5
xor ecx, ecx
inc ecx
mov eax, dword [ebp - 0x398]
imul eax, eax, 0x64
xor edx, edx
div ecx
push eax
call fcn.0105522c
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x38c]
xor ecx, ebp
call fcn.01047480
leave
sub eax, dword [ebp - 0x398]
xor edx, edx
cmp dword [ebp - 0x394], edi
jbe 0x1050df3
div dword [ebp - 0x394]
push eax
push esi
lea eax, [ebp - 0x104]
push eax
call fcn.0105aa80
jmp 0x1050ce2
mov ecx, 0x3e80
div ecx
jmp 0x1050de0