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

Disassembly:
push 0xffffffffffffffff
push 0x10162532
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x101b734c]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101b734c]
xor eax, esp
push eax
lea eax, [esp + 0x244]
mov dword fs:[0], eax
mov esi, dword [esp + 0x254]
xor ebp, ebp
cmp dword [esi + 0x3278], ebp
mov dword [esp + 0x40], esi
jne 0x100214cc
mov eax, dword [esi + 0x327c]
cmp eax, ebp
je 0x1002119d
push eax
call fcn.100ffef8
add esp, 4
mov dword [esi + 0x327c], ebp
cmp dword [esp + 0x26c], ebp
jle 0x1002165e
mov ebx, dword [esp + 0x270]
cmp ebx, ebp
jle 0x1002165e
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
mov edi, eax
call esi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x24c], ebp
sub eax, edi
cmp eax, ebx
jae 0x10021292
mov ebp, dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x100211f0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x270]
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0x270]
lea ecx, [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x270]
push edx
mov edx, dword [esp + 0x270]
push eax
mov eax, dword [esp + 0x5c]
push ecx
push edx
push eax
mov dword [esp + 0x3c], 0
call fcn.10045150
add esp, 0x28
test eax, eax
je 0x10021290
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
push ecx
call fcn.1004dc80
mov edx, dword [esp + 0x24]
push edx
mov dword [esp + 0x2c], eax
call fcn.100ffef8
add esp, 0x14
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x34]
call fcn.10070710
mov ecx, dword [esp + 0x26c]
push ecx
call ebp
call esi
sub eax, edi
cmp eax, ebx
jb 0x100211f0
xor ebp, ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov byte [esp + 0x24c], 1
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
mov edi, 0x3c
xor esi, esi
mov ecx, dword [esp + 0x34]
cmp ecx, ebp
je 0x100213e6
mov eax, dword [esp + 0x38]
sub eax, ecx
sar eax, 2
cmp esi, eax
jae 0x100213e6
push ebp
lea ecx, [esp + 0x80]
call fcn.1011e550
mov byte [esp + 0x24c], 2
mov ecx, dword [esp + 0x34]
cmp ecx, ebp
je 0x100212fa
mov eax, dword [esp + 0x38]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x10021303
call fcn.101020f5
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + esi*4]
push ebp
push edx
lea ecx, [esp + 0x84]
call fcn.10120880
test al, al
jne 0x1002133e
mov ecx, dword [esp + 0x34]
cmp ecx, ebp
je 0x1002132d
mov eax, dword [esp + 0x38]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x10021336
call fcn.101020f5
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + esi*4]
push eax
call ebx
jmp 0x100213bc
mov eax, dword [esp + 0x34]
cmp eax, ebp
je 0x10021353
mov ecx, dword [esp + 0x38]
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jb 0x1002135c
call fcn.101020f5
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + esi*4]
push ecx
call ebx
mov edx, dword [esp + 0x268]
push edx
lea ecx, [esp + 0x80]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
call fcn.101204d0
push 3
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x88]
call fcn.1011fdb0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
call fcn.100210a0
mov edx, dword [esp + 0x14]
lea edi, [edi + edx + 4]
mov byte [esp + 0x24c], 1
lea ecx, [esp + 0x7c]
mov dword [esp + 0x7c], 0x1016b744
call fcn.1011e620
lea ecx, [esp + 0x7c]
call fcn.1011e570
add esi, 1
jmp 0x100212b3
push edi
call fcn.100ffe35
mov esi, eax
add esp, 4
cmp esi, ebp
jne 0x100214d3
xor esi, esi
jmp 0x10021400
mov ecx, dword [esp + 0x24]
cmp ecx, ebp
je 0x1002147f
mov eax, dword [esp + 0x28]
sub eax, ecx
sar eax, 3
cmp esi, eax
jae 0x1002147f
push ebp
lea ecx, [esp + 0x80]
call fcn.1011e550
mov byte [esp + 0x24c], 3
mov ecx, dword [esp + 0x24]
cmp ecx, ebp
je 0x1002143f
mov eax, dword [esp + 0x28]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x10021448
call fcn.101020f5
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + esi*8]
push eax
lea ecx, [esp + 0x80]
call fcn.1011eba0
mov byte [esp + 0x24c], 1
lea ecx, [esp + 0x7c]
mov dword [esp + 0x7c], 0x1016b744
call fcn.1011e620
lea ecx, [esp + 0x7c]
call fcn.1011e570
add esi, 1
jmp 0x10021400
mov byte [esp + 0x24c], 0
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x10021498
push eax
call fcn.100eedad
add esp, 4
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x24c], 0xffffffff
mov eax, dword [esp + 0x34]
cmp eax, ebp
je 0x100214c0
push eax
call fcn.100eedad
add esp, 4
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
xor eax, eax
jmp 0x1002181f
push edi
push ebp
push esi
call fcn.10100e30
add edi, 0xffffffd0
add esp, 0xc
mov dword [esi + 0x28], edi
xor edi, edi
jmp 0x100214f0
mov ecx, dword [esp + 0x24]
cmp ecx, ebp
je 0x1002160c
mov eax, dword [esp + 0x28]
sub eax, ecx
sar eax, 3
cmp edi, eax
jae 0x1002160c
push ebp
lea ecx, [esp + 0x80]
call fcn.1011e550
mov byte [esp + 0x24c], 4
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x10021539
mov edx, dword [esp + 0x28]
mov ecx, edx
sub ecx, eax
sar ecx, 3
cmp edi, ecx
jb 0x10021546
call fcn.101020f5
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
cmp eax, ebp
lea ebx, [eax + edi*8]
je 0x10021556
sub edx, eax
sar edx, 3
cmp edi, edx
jb 0x1002155f
call fcn.101020f5
mov eax, dword [esp + 0x24]
mov edx, dword [ebx + 4]
mov ebx, dword [eax + edi*8]
mov byte [esi + 0x30], 0x44
mov byte [esi + 0x31], 0x4d
mov byte [esi + 0x32], 0x46
mov byte [esi + 0x33], 0x51
mov ecx, dword [esi + 0x34]
cmp ecx, ebp
lea eax, [esi + 0x3c]
jle 0x10021594
mov ebp, ecx
mov dword [esp + 0x18], ebp
sub dword [esp + 0x18], 1
mov ebp, dword [eax]
lea eax, [eax + ebp + 4]
jne 0x10021585
xor ebp, ebp
add ecx, 1
mov dword [esi + 0x34], ecx
mov ecx, dword [esp + 0x26c]
push edx
mov dword [esi + 0x38], ecx
mov dword [eax], edx
add eax, 4
push ebx
push eax
call fcn.10102150
mov eax, dword [esp + 0x30]
add esp, 0xc
cmp eax, ebp
je 0x100215c9
mov ecx, dword [esp + 0x28]
sub ecx, eax
sar ecx, 3
cmp edi, ecx
jb 0x100215d2
call fcn.101020f5
mov eax, dword [esp + 0x24]
mov edx, dword [eax + edi*8]
push edx
lea ecx, [esp + 0x80]
call fcn.1011eba0
mov byte [esp + 0x24c], 1
lea ecx, [esp + 0x7c]
mov dword [esp + 0x7c], 0x1016b744
call fcn.1011e620
lea ecx, [esp + 0x7c]
call fcn.1011e570
add edi, 1
jmp 0x100214f0
mov byte [esp + 0x24c], 0
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x10021625
push eax
call fcn.100eedad
add esp, 4
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x24c], 0xffffffff
mov eax, dword [esp + 0x34]
cmp eax, ebp
je 0x1002164d
push eax
call fcn.100eedad
add esp, 4
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
jmp 0x10021813
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x270]
lea eax, [esp + 0x54]
push eax
mov eax, dword [esp + 0x270]
lea ecx, [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x270]
push edx
mov edx, dword [esp + 0x270]
push eax
push ecx
push edx
push esi
mov dword [esp + 0x40], ebp
call fcn.10045150
add esp, 0x28
test eax, eax
je 0x100214cc
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
push esi
call fcn.1004dc80
mov esi, eax
mov eax, dword [esp + 0x28]
push eax
call fcn.100ffef8
add esp, 0x14
push ebp
lea ecx, [esp + 0x80]
call fcn.1011e550
mov dword [esp + 0x24c], 5
push ebp
push esi
lea ecx, [esp + 0x84]
call fcn.10120880
test al, al
push esi
jne 0x1002172d
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esp + 0x24c], 0xffffffff
lea ecx, [esp + 0x7c]
mov dword [esp + 0x7c], 0x1016b744
call fcn.1011e620
lea ecx, [esp + 0x7c]
call fcn.1011e570
xor eax, eax
jmp 0x1002181f
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ebx, dword [esp + 0x268]
cmp ebx, 0xfa
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
jne 0x10021758
push 1
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
jmp 0x10021771
push ebx
lea ecx, [esp + 0x80]
call fcn.101204d0
push 3
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x88]
call fcn.1011fdb0
mov edi, dword [esp + 0x1c]
add edi, 0x40
push edi
call fcn.100ffe35
mov esi, eax
add esp, 4
cmp esi, ebp
jne 0x100217a9
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x80]
call fcn.1011eba0
jmp 0x10021701
push edi
push ebp
push esi
call fcn.10100e30
mov eax, dword [esp + 0x28]
add eax, 0x10
xor ecx, ecx
cmp ebx, 0xfa
sete cl
mov dword [esi + 0x28], eax
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push ecx
push ebp
push edx
push eax
lea eax, [esi + 0x30]
call fcn.1001f7c0
mov ecx, dword [esp + 0x30]
add esp, 0x1c
push ecx
lea ecx, [esp + 0x80]
call fcn.1011eba0
mov dword [esp + 0x24c], 0xffffffff
lea ecx, [esp + 0x7c]
mov dword [esp + 0x7c], 0x1016b744
call fcn.1011e620
lea ecx, [esp + 0x7c]
call fcn.1011e570
mov edx, dword [esp + 0x40]
mov dword [edx + 0x327c], esi
mov eax, esi
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.101003d3
add esp, 0x23c
ret