Function at 0x10021914
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1005f0b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
cmp byte [ebp + 0x18], 0
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], edi
push 0
je 0x10021968
cmp byte [ebp + 0x1c], 0
je 0x1002195d
call dword [sym.imp.GDI32.dll_CreatePalette]
jmp 0x10021cff
call dword [sym.imp.KERNEL32.dll_SuspendThread]
jmp 0x10021cff
mov dword [esp + 0x18], 0x21af
cmp dword [esp + 0x18], 0x2488
pop ebx
jle 0x100219e8
mov esi, ebx
mov edi, ebx
mov ecx, ebx
mov dword [esp + 0x10], ebx
mov eax, edi
cdq
idiv ecx
lea ecx, [esp + 0x88]
and edx, esi
mov eax, edx
cdq
push edx
push eax
call fcn.10001a94
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x100219a7
mov eax, dword [eax]
push eax
call fcn.10045eb3
pop ecx
push ebx
push 1
lea ecx, [esp + 0x90]
call fcn.1000efb0
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, 0x6620
jl 0x10021985
inc edi
cmp edi, 0x455
jl 0x1002197f
inc esi
cmp esi, 0x3e81
jl 0x1002197d
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x14], 0x2139
jge 0x100219fd
push str.iomiycdpn_phjuzir_hvlkb_nunz_kamhhsalq_qwjpb_ylnrxumr_gfpyi_ilzvc_lcgrqs
call fcn.10045eb3
pop ecx
or dword [esp + 0xac], 0xffffffff
cmp byte [ebp + 0xc], 0
je 0x10021cf8
mov esi, dword [ebp + 0x10]
lea edx, [esp + 0x44]
push 0x1c6c
push ecx
mov dword [esp + 0x34], esi
mov ecx, 0x4790
mov dword [esp + 0x38], edi
mov dword [esp + 0x4c], 7
call fcn.100244a5
pop ecx
xor eax, eax
mov dword [esp + 0x60], 7
pop ecx
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], ax
push 3
lea ecx, [esp + 0x64]
mov dword [esp + 0xb0], 2
call fcn.1000e794
mov byte [esp + 0xac], 3
lea eax, [esp + 0x60]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], 4
mov dword [esp + 0x28], 3
push eax
call fcn.10024de8
pop ecx
mov dword [esp + 0x1c], ebx
jmp 0x10021aa6
mov eax, dword [esp + 0x1c]
mov dword [esp + eax*4 + 0x34], 0x8acc4b7c
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], 1
jl 0x10021a96
call fcn.100228d6
mov ecx, dword [esp + 0x60]
xor edx, edx
inc edx
mov dword [ecx], edx
mov dword [esp + 0x10], ebx
jmp 0x10021ad1
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x6c], 0x6d058a83
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 3
jl 0x10021ac1
mov eax, dword [ecx + 4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x6c]
cmp dword [esp + 0x14], eax
jne 0x10021af9
mov eax, dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
mov eax, edx
jmp 0x10021afb
mov eax, ebx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x60]
inc dword [eax]
cmp dword [eax], 0x14
jle 0x10021abb
lea ecx, [esp + 0x60]
mov byte [esp + 0xac], 2
call fcn.1000e817
cmp edi, esi
ja 0x10021ba4
push dword [esp + 0x34]
lea eax, [esp + 0x8c]
mov dword [esp + 0x3c], ebx
push eax
lea eax, [esp + 0x80]
mov dword [esp + 0x44], ebx
push eax
xorps xmm0, xmm0
mov dword [esp + 0x4c], ebx
push ebx
lea ecx, [esp + 0x48]
movdqu xmmword [esp + 0x88], xmm0
call fcn.10013b89
lea edx, [esp + 0x38]
mov byte [esp + 0xac], 4
call fcn.10021d2b
lea ecx, [esp + 0x38]
mov byte [esp + 0xac], 2
call fcn.1000e817
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x48]
cmp ecx, eax
je 0x10021b93
push 0xffffffffffffffff
push ebx
push eax
call fcn.1000f1a6
push ebx
push 1
lea ecx, [esp + 0x50]
call fcn.1000f2e8
jmp 0x10021cff
mov dword [esp + 0x10], ebx
jmp 0x10021bba
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x20], 2
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 1
jl 0x10021baa
mov dword [esp + 0x20], 0x13
jmp 0x10021bf4
push 0x5308
push 0x3c6
lea eax, [esp + 0x23]
mov byte [esp + 0x23], bl
push eax
push 0x3b0f
mov edx, 0x34a3
call fcn.100229a8
add esp, 0x10
inc dword [esp + 0x20]
cmp dword [esp + 0x20], 0x15
jge 0x10021bcb
push 0x52b0
lea eax, [esp + 0x30]
mov dword [esp + 0x24], ebx
push eax
lea eax, [esp + 0x38]
mov edx, 0x3597
push eax
push 0x6329
lea eax, [esp + 0x58]
mov cl, 1
push eax
push ebx
push 1
call fcn.10025d83
mov eax, dword [esp + 0x48]
add esp, 0x1c
cmp eax, dword [esp + 0x30]
jae 0x10021b7f
mov dword [esp + 0x10], 0xfa2f
sub esp, 0x1c
mov dword [esp + 0x40], 0xdf628589
mov dword [esp + 0x30], ebx
mov dword [esp + 0x30], 0xfffffff6
mov dword [esp + 0x44], 0x9c279a20
call fcn.100242ee
mov eax, dword [esp + 0x2c]
add esp, 0x1c
cmp eax, dword [esp + 0x10]
jne 0x10021c90
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
cmp eax, 1
setge cl
cmp dword [esp + 0x10], ecx
je 0x10021c90
xor ecx, ecx
inc ecx
jmp 0x10021c92
mov ecx, ebx
xor eax, eax
cmp ecx, 0xffffffff
setge al
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x10]
jle 0x10021cb3
cmp dword [esp + 0x10], ebx
je 0x10021cb3
xor eax, eax
inc eax
jmp 0x10021cb5
mov eax, ebx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x10]
mov esi, dword [esp + 0x2c]
neg eax
mov ecx, esi
sbb eax, eax
add esi, 2
inc eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], eax
call fcn.10021574
movzx eax, ax
lea ecx, [esp + 0x48]
push eax
call fcn.1000e64f
cmp esi, dword [esp + 0x30]
jb 0x10021c38
jmp 0x10021b7f
mov eax, dword [ebp + 0x14]
mov ecx, dword [esi]
mov dword [eax], ecx
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret