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

Disassembly:
push 0x54
mov eax, 0x10db94c
call fcn.010a0c60
xor edx, edx
mov dword [ebp - 0x34], edx
mov esi, 0x80000000
cmp dword [0x10efc7c], edx
je 0x10446e5
mov al, byte [0x10efc80]
cmp al, 4
jae 0x10446a4
test al, al
jne 0x10446e5
mov ecx, dword [0x10efc6c]
and ecx, esi
xor eax, eax
or eax, ecx
je 0x10446e5
mov ecx, dword [0x10efc74]
mov eax, ecx
and eax, esi
cmp edx, dword [0x10efc70]
jne 0x10446e5
cmp eax, ecx
jne 0x10446e5
movzx eax, byte [ebp + 0x18]
push edx
push edx
push eax
push 0x1001ae8
push dword [0x10efc54]
push dword [0x10efc50]
call fcn.01046dcb
mov eax, dword [0x10ed030]
mov edi, 0x10ed030
mov ebx, 0x1004b58
cmp eax, edi
je 0x1044735
test byte [eax + 0x1c], 1
je 0x1044735
cmp byte [eax + 0x19], 5
jb 0x1044735
push dword [ebp + 0x28]
movzx edx, byte [ebp + 0x18]
push dword [ebp + 0x24]
mov ecx, dword [ebp + 0xc]
push dword [ebp + 0x1c]
mov ecx, dword [ecx + 8]
push edx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push 0x47
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01040f65
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0xa
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x28], eax
call fcn.0105c1ae
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0x32000
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
push 0x20119
push 0x10027a0
push 0x80000002
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.010292e8
mov esi, eax
mov eax, dword [0x10ed030]
cmp eax, edi
je 0x10447b2
test byte [eax + 0x1c], 2
je 0x10447b2
movzx edx, byte [eax + 0x19]
mov ecx, esi
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 5
cmp edx, ecx
jl 0x10447b2
push esi
push ebx
push 0x48
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010294b2
test esi, esi
jne 0x1044805
and dword [ebp - 0x24], esi
lea eax, [ebp - 0x24]
push eax
push 0x1004bdc
lea ecx, [ebp - 0x48]
call fcn.0102c669
mov esi, eax
mov eax, dword [0x10ed030]
cmp eax, edi
je 0x10447f3
test byte [eax + 0x1c], 2
je 0x10447f3
cmp byte [eax + 0x19], 5
jb 0x10447f3
push esi
push dword [ebp - 0x24]
push ebx
push 0x49
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102cb22
test esi, esi
jne 0x1044805
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x1044805
or dword [ebp - 0x20], 0xffffffff
mov ecx, dword [ebp + 0x1c]
call fcn.010576cb
cmp al, 1
jne 0x104485c
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 0x20]
call fcn.010568fd
mov dword [ebp - 0x10], eax
mov ecx, dword [0x10ed030]
cmp ecx, edi
je 0x104486d
test byte [ecx + 0x1c], 2
je 0x104486d
movzx eax, byte [ecx + 0x19]
xor edx, edx
cmp dword [ebp - 0x10], edx
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp eax, edx
jl 0x104486d
push dword [ebp - 0x58]
push dword [ebp - 0x10]
push ebx
push 0x4a
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0102cb22
jmp 0x1044867
push dword [ebp + 0x20]
lea ecx, [ebp - 0x60]
call fcn.0104463c
mov ecx, dword [0x10ed030]
cmp dword [ebp - 0x10], 0
jl 0x1044988
push dword [ebp + 0x10]
lea ecx, [ebp + 0x20]
call fcn.01042474
cmp dword [ebp + 0x20], 0
je 0x1044971
and dword [ebp + 0x10], 0
push 0x1004bb4
lea ecx, [ebp - 0x2c]
call fcn.0102e3bb
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax]
lea edx, [ebp + 0x10]
push edx
push dword [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
call dword [ecx + 0xc]
mov esi, eax
mov eax, dword [0x10ed030]
cmp eax, edi
je 0x10448e9
test byte [eax + 0x1c], 2
je 0x10448e9
movzx ecx, byte [eax + 0x19]
xor edx, edx
test esi, esi
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp ecx, edx
jl 0x10448e9
push dword [ebp + 0x10]
push esi
push ebx
push 0x4b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102cb22
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
jl 0x1044963
cmp dword [ebp + 0x10], 0
je 0x1044963
push 0x1004ba0
lea ecx, [ebp - 0x30]
call fcn.0102e3bb
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push dword [ebp - 0x30]
mov byte [ebp - 4], 4
push eax
call dword [ecx + 0xc]
mov esi, eax
mov eax, dword [0x10ed030]
cmp eax, edi
je 0x1044956
test byte [eax + 0x1c], 2
je 0x1044956
movzx ecx, byte [eax + 0x19]
xor edx, edx
test esi, esi
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp ecx, edx
jl 0x1044956
push dword [ebp - 0x1c]
push esi
push 0x1004b58
push 0x4c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102cb22
test esi, esi
jge 0x104495e
and dword [ebp - 0x1c], 0
push dword [ebp - 0x30]
call ebx
push dword [ebp - 0x2c]
and dword [ebp - 0x10], 0
call ebx
mov ebx, 0x1004b58
mov eax, dword [ebp + 0x20]
mov byte [ebp - 4], 1
test eax, eax
je 0x1044982
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [0x10ed030]
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x10], 0
jl 0x1044d64
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0x20]
mov esi, eax
mov dword [ebp - 0x10], esi
mov ecx, dword [0x10ed030]
cmp ecx, edi
je 0x10449e5
test byte [ecx + 0x1c], 2
je 0x10449e5
movzx eax, byte [ecx + 0x19]
xor edx, edx
test esi, esi
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp eax, edx
jl 0x10449e5
push dword [ebp - 0x14]
push esi
push ebx
push 0x4d
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0102cb22
mov ecx, dword [0x10ed030]
test esi, esi
jl 0x1044d64
cmp dword [ebp - 0x14], 0
jge 0x10449f7
and dword [ebp - 0x14], 0
mov eax, dword [0x10ed13c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10449ff
sub eax, edx
sar eax, 1
mov dword [ebp - 0x2c], eax
mov eax, dword [0x10ed138]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1044a18
sub eax, edx
sar eax, 1
mov esi, eax
mov eax, dword [0x10ed134]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1044a30
and dword [ebp - 0x30], 0
sub eax, ecx
mov ecx, dword [ebp + 0x24]
sar eax, 1
mov dword [ebp - 0x38], eax
call fcn.0102816f
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
imul eax, eax, 0x1770
add eax, esi
lea eax, [eax + ecx + 1]
mov ecx, dword [ebp + 0x24]
push eax
call fcn.010286c1
push dword [0x10ed138]
mov ecx, dword [ebp + 0x24]
call fcn.01028aa3
cmp dword [ebp - 0x14], 0
jle 0x1044d07
cmp dword [ebp - 0x14], 1
jne 0x1044a8d
and dword [ebp + 0x14], 0xffffefff
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x28]
push dword [ebp + 0x24]
mov dword [ebp - 0x3c], eax
call fcn.010427cb
and dword [ebp + 0x20], 0
cmp dword [ebp - 0x14], 0
mov dword [ebp - 0x24], eax
jbe 0x1044cd6
mov esi, 0x80000000
and dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push dword [ebp + 0x20]
mov byte [ebp - 4], 5
push eax
call dword [ecx + 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [0x10ed030]
cmp eax, edi
je 0x1044b13
test byte [eax + 0x1c], 2
je 0x1044b13
movzx ecx, byte [eax + 0x19]
xor edx, edx
cmp dword [ebp - 0x10], edx
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp ecx, edx
jl 0x1044b0e
push dword [ebp - 0x18]
push dword [ebp + 0x20]
push dword [ebp - 0x10]
push ebx
push 0x4e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01082845
mov esi, 0x80000000
cmp dword [ebp - 0x10], 0
jl 0x1044cc5
push 0x10f1178
lea ecx, [ebp + 0x10]
call fcn.0102847f
push 0x1770
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 6
call fcn.010286c1
cmp dword [0x10efc7c], 0
je 0x1044b90
mov al, byte [0x10efc80]
cmp al, 4
jae 0x1044b51
test al, al
jne 0x1044b90
mov ecx, dword [0x10efc6c]
and ecx, esi
xor eax, eax
or eax, ecx
je 0x1044b90
mov ecx, dword [0x10efc74]
mov eax, ecx
xor edx, edx
and eax, esi
cmp edx, dword [0x10efc70]
jne 0x1044b90
cmp eax, ecx
jne 0x1044b90
push dword [ebp + 0x20]
push 0x1001b08
push dword [0x10efc54]
push dword [0x10efc50]
call fcn.01083da0
push dword [ebp + 0x1c]
lea eax, [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x18]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x60]
push dword [ebp + 0x14]
push dword [ebp - 0x1c]
push eax
call fcn.01060984
cmp dword [0x10efc7c], 0
je 0x1044c04
mov al, byte [0x10efc80]
cmp al, 4
jae 0x1044bc5
test al, al
jne 0x1044c04
mov ecx, dword [0x10efc6c]
and ecx, esi
xor eax, eax
or eax, ecx
je 0x1044c04
mov ecx, dword [0x10efc74]
mov eax, ecx
xor edx, edx
and eax, esi
cmp edx, dword [0x10efc70]
jne 0x1044c04
cmp eax, ecx
jne 0x1044c04
push dword [ebp + 0x20]
push 0x1001b18
push dword [0x10efc54]
push dword [0x10efc50]
call fcn.01083da0
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], 0
je 0x1044c5b
test byte [ebp + 0x14], 8
jne 0x1044c3b
test dword [ebp + 0x14], 0x400
jne 0x1044c3b
lea eax, [ebp + 0x10]
push eax
call fcn.010427cb
add eax, dword [ebp - 0x38]
add dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
add ecx, eax
cmp ecx, dword [ebp - 0x20]
ja 0x1044c85
mov eax, dword [ebp + 0x10]
push dword [eax - 0xc]
mov ecx, dword [ebp + 0x24]
inc dword [ebp - 0x30]
push eax
call fcn.0102895b
push dword [0x10ed134]
mov ecx, dword [ebp + 0x24]
call fcn.01028aa3
mov eax, dword [ebp + 0x10]
lea ecx, [eax - 0x10]
call fcn.01028079
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 1
test eax, eax
je 0x1044c74
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc dword [ebp + 0x20]
mov eax, dword [ebp + 0x20]
cmp eax, dword [ebp - 0x14]
jb 0x1044ab7
jmp 0x1044cd6
mov eax, dword [0x10ed030]
cmp eax, edi
je 0x1044cba
test byte [eax + 0x1c], 2
je 0x1044cba
cmp byte [eax + 0x19], 5
jb 0x1044cba
push dword [ebp - 0x20]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
add ecx, edx
push ecx
push dword [ebp - 0x14]
push dword [ebp + 0x20]
push ebx
push 0x4f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01029580
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.01028079
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 1
test eax, eax
je 0x1044cd6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x28]
mov ecx, dword [0x10ed030]
cmp ecx, edi
je 0x1044d07
test byte [ecx + 0x1c], 2
je 0x1044d07
cmp byte [ecx + 0x19], 5
jb 0x1044d07
push eax
push dword [ebp - 0x3c]
push ebx
push 0x50
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0102cb22
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp - 0x30]
push dword [0x10ed13c]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x24]
call fcn.01028aa3
mov ecx, dword [ebp + 0x24]
push 0xffffffffffffffff
call fcn.0102f2bd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x28]
mov ecx, dword [0x10ed030]
cmp ecx, edi
je 0x1044d5e
test byte [ecx + 0x1c], 2
je 0x1044d5e
cmp byte [ecx + 0x19], 5
jb 0x1044d5e
push eax
push dword [ebp - 0x28]
push ebx
push 0x51
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0102cb22
mov ecx, dword [0x10ed030]
cmp dword [ebp - 0x10], 0
jge 0x1044d6b
mov dword [ebp - 0x10], 0x80040365
cmp ecx, edi
je 0x1044dc0
test byte [ecx + 0x1c], 1
je 0x1044dc0
movzx eax, byte [ecx + 0x19]
xor ecx, ecx
cmp dword [ebp - 0x10], ecx
setl cl
dec ecx
and ecx, 3
inc ecx
inc ecx
cmp eax, ecx
jl 0x1044dc0
mov ecx, dword [ebp + 0x24]
push 0xf3c
lea eax, [ebp + 0x24]
push eax
call fcn.010287d3
mov ecx, dword [ebp + 0x28]
push dword [ecx]
mov dword [ebp - 0x34], 1
push dword [eax]
mov eax, dword [0x10ed030]
push dword [ebp - 0x10]
push ebx
push 0x52
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01040af4
test byte [ebp - 0x34], 1
je 0x1044dd1
mov ecx, dword [ebp + 0x24]
add ecx, 0xfffffff0
call fcn.01028079
cmp dword [0x10efc7c], 0
je 0x1044e3f
mov al, byte [0x10efc80]
cmp al, 4
jae 0x1044de7
test al, al
jne 0x1044e3f
mov ecx, dword [0x10efc6c]
mov edx, 0x80000000
and ecx, edx
xor eax, eax
or eax, ecx
je 0x1044e3f
mov ecx, dword [0x10efc74]
mov eax, ecx
and eax, edx
xor edx, edx
cmp edx, dword [0x10efc70]
jne 0x1044e3f
cmp eax, ecx
jne 0x1044e3f
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x1044e1d
mov eax, dword [eax]
jmp 0x1044e20
or eax, 0xffffffff
push dword [ebp - 0x10]
push eax
movzx eax, byte [ebp + 0x18]
push eax
push 0x1001af8
push dword [0x10efc54]
push dword [0x10efc50]
call fcn.01046dcb
lea ecx, [ebp - 0x48]
call fcn.010292ca
lea ecx, [ebp - 0x60]
call fcn.0102dcb1
mov eax, dword [ebp - 0x10]
call fcn.010a0d4c
ret 0x24