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

Disassembly:
sub esp, 8
mov eax, dword [0x101b734c]
xor eax, esp
mov dword [esp + 4], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call edi
mov ebp, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push 1
push 0x102bfd48
mov ebx, eax
call ebp
cmp eax, 1
jne 0x1004b615
push 1
call dword [sym.imp.KERNEL32.DLL_Sleep]
call edi
sub eax, ebx
cmp eax, 0x3e8
ja 0x1004b615
push 1
push 0x102bfd48
call ebp
cmp eax, 1
je 0x1004b5f4
sub dword [0x102bfd4c], 1
jns 0x1004b628
mov dword [0x102bfd4c], 0
push 0
push 0x102bfd48
call ebp
push esi
call fcn.100588e0
push 0
push esi
call fcn.10012cc0
add esp, 0xc
lea edi, [esi + 0x94]
mov ebp, 0x65
lea ecx, [ecx]
mov ebx, dword [edi]
call fcn.1003f7f0
mov eax, dword [edi]
test eax, eax
je 0x1004b66c
push eax
call fcn.100ffef8
add esp, 4
mov dword [edi], 0
add edi, 4
sub ebp, 1
jne 0x1004b650
push esi
call fcn.10047ce0
push esi
call fcn.10047ea0
mov eax, dword [esi + 0x25f4]
xor ebx, ebx
add esp, 8
cmp eax, ebx
je 0x1004b696
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call fcn.10052280
push esi
call fcn.1001f900
mov eax, dword [esi + 0x327c]
add esp, 8
cmp eax, ebx
je 0x1004b6be
push eax
call fcn.100ffef8
add esp, 4
mov dword [esi + 0x327c], ebx
mov eax, dword [esi + 0x3274]
cmp eax, ebx
je 0x1004b6d7
push eax
call fcn.100ffef8
add esp, 4
mov dword [esi + 0x3274], ebx
mov eax, dword [esi + 0x3280]
cmp eax, ebx
je 0x1004b6f3
add eax, 0xfffffff0
push eax
call fcn.100ffef8
add esp, 4
mov dword [esi + 0x3280], ebx
mov eax, dword [esi + 0x3284]
cmp eax, ebx
je 0x1004b70c
push eax
call fcn.100ffef8
add esp, 4
mov dword [esi + 0x3284], ebx
mov eax, dword [esi + 0x37f4]
cmp eax, ebx
je 0x1004b725
push eax
call fcn.100ffef8
add esp, 4
mov dword [esi + 0x37f4], ebx
mov eax, dword [esi + 0x3298]
cmp eax, ebx
je 0x1004b73e
push eax
call fcn.100ffef8
add esp, 4
mov dword [esi + 0x3298], ebx
xor ebp, ebp
mov edi, dword [esi + 0x3288]
mov ecx, dword [edi + 4]
cmp ecx, ebx
je 0x1004b783
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jae 0x1004b783
cmp ecx, ebx
je 0x1004b769
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x1004b76e
call fcn.101020f5
mov eax, dword [edi + 4]
mov ecx, dword [eax + ebp*4]
push ecx
push esi
call fcn.10089a80
add esp, 8
add ebp, 1
jmp 0x1004b740
mov ebp, dword [edi + 8]
cmp dword [edi + 4], ebp
jbe 0x1004b790
call fcn.101020f5
mov ebx, dword [edi + 4]
cmp ebx, dword [edi + 8]
jbe 0x1004b79d
call fcn.101020f5
cmp ebx, ebp
je 0x1004b7ce
mov eax, dword [edi + 8]
sub eax, ebp
sar eax, 2
test eax, eax
lea ecx, [eax*4]
lea edx, [ecx + ebx]
mov dword [esp + 0x10], edx
jle 0x1004b7c7
push ecx
push ebp
push ecx
push ebx
call fcn.10101dfc
add esp, 0x10
mov eax, dword [esp + 0x10]
mov dword [edi + 8], eax
xor ebp, ebp
mov edi, dword [esi + 0x328c]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x1004b813
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jae 0x1004b813
test ecx, ecx
je 0x1004b7f9
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x1004b7fe
call fcn.101020f5
mov ecx, dword [edi + 4]
mov edx, dword [ecx + ebp*4]
push edx
push esi
call fcn.10059820
add esp, 8
add ebp, 1
jmp 0x1004b7d0
mov ebp, dword [edi + 8]
cmp dword [edi + 4], ebp
jbe 0x1004b820
call fcn.101020f5
mov ebx, dword [edi + 4]
cmp ebx, dword [edi + 8]
jbe 0x1004b82d
call fcn.101020f5
cmp ebx, ebp
je 0x1004b85e
mov eax, dword [edi + 8]
sub eax, ebp
sar eax, 2
test eax, eax
lea ecx, [eax*4]
lea edx, [ecx + ebx]
mov dword [esp + 0x10], edx
jle 0x1004b857
push ecx
push ebp
push ecx
push ebx
call fcn.10101dfc
add esp, 0x10
mov eax, dword [esp + 0x10]
mov dword [edi + 8], eax
mov eax, dword [esi + 0x37d8]
test eax, eax
je 0x1004b87b
push eax
call fcn.100ffef8
add esp, 4
mov dword [esi + 0x37d8], 0
mov edi, dword [esi + 0x32d8]
test edi, edi
mov ebp, 0x10
lea ebx, [ebp - 1]
je 0x1004b8b5
cmp dword [edi + 0x18], ebp
jb 0x1004b89e
mov ecx, dword [edi + 4]
push ecx
call fcn.100eedad
add esp, 4
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], 0
push edi
mov byte [edi + 4], 0
call fcn.100eedad
add esp, 4
mov edi, dword [esi + 0x2644]
test edi, edi
je 0x1004b8e7
cmp dword [edi + 0x18], ebp
jb 0x1004b8d0
mov edx, dword [edi + 4]
push edx
call fcn.100eedad
add esp, 4
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], 0
push edi
mov byte [edi + 4], 0
call fcn.100eedad
add esp, 4
mov edi, dword [esi + 0x2650]
test edi, edi
je 0x1004b919
cmp dword [edi + 0x18], ebp
jb 0x1004b902
mov eax, dword [edi + 4]
push eax
call fcn.100eedad
add esp, 4
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], 0
push edi
mov byte [edi + 4], 0
call fcn.100eedad
add esp, 4
mov edi, dword [esi + 0x2624]
test edi, edi
je 0x1004b947
mov eax, dword [edi + 4]
test eax, eax
je 0x1004b933
push eax
call fcn.100eedad
add esp, 4
xor eax, eax
push edi
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
call fcn.100eedad
add esp, 4
mov edi, dword [esi + 0x2628]
test edi, edi
je 0x1004b975
mov eax, dword [edi + 4]
test eax, eax
je 0x1004b961
push eax
call fcn.100eedad
add esp, 4
xor eax, eax
push edi
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
call fcn.100eedad
add esp, 4
mov edi, dword [esi + 0x3288]
test edi, edi
je 0x1004b9a3
mov eax, dword [edi + 4]
test eax, eax
je 0x1004b98f
push eax
call fcn.100eedad
add esp, 4
xor eax, eax
push edi
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
call fcn.100eedad
add esp, 4
mov edi, dword [esi + 0x328c]
test edi, edi
je 0x1004b9d1
mov eax, dword [edi + 4]
test eax, eax
je 0x1004b9bd
push eax
call fcn.100eedad
add esp, 4
xor eax, eax
push edi
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
call fcn.100eedad
add esp, 4
mov esi, dword [esi + 0x3308]
test esi, esi
je 0x1004b9ff
mov eax, dword [esi + 4]
test eax, eax
je 0x1004b9eb
push eax
call fcn.100eedad
add esp, 4
xor eax, eax
push esi
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call fcn.100eedad
add esp, 4
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101003d3
add esp, 8
ret