Function at 0x100212b0
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007d720
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x70
mov eax, dword [0x1009c040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0xffffffffffffffec
mov dword [ebp - 4], 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
and ecx, 0xffffffdf
or ecx, 0x80000
cmp eax, ecx
je 0x1002131d
push ecx
push 0xffffffffffffffec
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea eax, [edi + 0x278]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov dword [ebp - 0x78], esi
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 2
mov ecx, dword [edi + 0x284]
sub ecx, dword [edi + 0x27c]
mov eax, dword [edi + 0x280]
sub eax, dword [edi + 0x278]
push ecx
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push dword [ebp - 0x60]
mov dword [ebp - 0x74], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp byte [edi + 0x289], 0
mov byte [ebp - 0x55], 0
jne 0x100218fa
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ecx]
call dword [eax + 8]
cmp byte [edi + 0x1e8], 0
je 0x100215aa
movzx esi, byte [edi + 0x288]
xor ecx, ecx
mov eax, esi
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1004e5be
add esp, 4
mov dword [ebp - 0x5c], eax
test esi, esi
je 0x10021407
lea ecx, [eax + 8]
mov dword [ecx - 8], 0
lea ecx, [ecx + 0x10]
mov dword [ecx - 0x14], 0
mov dword [ecx - 0x10], 0
mov dword [ecx - 0xc], 0
sub esi, 1
jne 0x100213e3
movzx eax, byte [edi + 0x288]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1004e5be
mov cl, byte [edi + 0x288]
add esp, 4
xor esi, esi
mov dword [ebp - 0x68], eax
test cl, cl
je 0x100214d1
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x64], edx
cmp esi, 0x64
jge 0x1002147a
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x54]
push esi
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
mov edx, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x68]
movups xmm0, xmmword [eax]
movups xmmword [edx], xmm0
mov eax, dword [edx + 0xc]
add edx, 0x10
mov dword [ecx + esi*4], eax
inc esi
mov cl, byte [edi + 0x288]
movzx eax, cl
mov dword [ebp - 0x64], edx
cmp esi, eax
jl 0x10021440
test cl, cl
je 0x100214d1
mov ecx, dword [edi + 0x28]
mov eax, dword [ecx]
mov eax, dword [eax + 0x50]
call eax
mov ecx, dword [ebp - 0x5c]
test al, al
jne 0x100214ae
mov eax, dword [edi + 0x2c]
cmp dword [eax + 0x10], 0
je 0x100214ae
movzx eax, byte [edi + 0x288]
add eax, eax
mov eax, dword [ecx + eax*8 - 4]
sub eax, dword [ebp - 0x28]
mov dword [edi + 0x1e0], eax
mov eax, dword [edi + 0x2c]
mov edx, dword [ebp - 0x38]
cmp dword [eax + 0x34], 0
je 0x100214e8
movzx eax, byte [edi + 0x288]
add eax, eax
mov eax, dword [ecx + eax*8 - 4]
sub eax, edx
mov dword [edi + 0x1e4], eax
jmp 0x100214e8
mov edx, dword [ebp - 0x38]
mov dword [edi + 0x1e0], 0
mov dword [edi + 0x1e4], 0
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x64], 0
cmp dword [eax + 0x34], 0
je 0x1002150b
mov eax, dword [edi + 0x38]
mov ecx, dword [eax + 0x124]
sub ecx, dword [ebp - 0x40]
add ecx, edx
mov dword [ebp - 0x64], ecx
jmp 0x10021538
mov ecx, dword [edi + 0x28]
mov eax, dword [ecx]
mov eax, dword [eax + 0x50]
call eax
test al, al
jne 0x10021536
mov eax, dword [edi + 0x2c]
cmp dword [eax + 0x10], 0
je 0x10021536
mov eax, dword [edi + 0x38]
mov ecx, dword [eax + 0x124]
sub ecx, dword [ebp - 0x30]
add ecx, dword [ebp - 0x28]
mov dword [ebp - 0x64], ecx
jmp 0x10021538
xor ecx, ecx
mov dl, byte [edi + 0x288]
xor esi, esi
test dl, dl
je 0x10021594
cmp esi, 0x64
jge 0x10021594
test esi, esi
jne 0x10021564
movzx eax, dl
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + eax*4 - 4]
mov edx, dword [ebp - 0x5c]
sub eax, dword [edx + 0xc]
sub eax, ecx
mov dword [edi + 0x50], eax
jmp 0x10021586
mov eax, dword [edi + 0x38]
mov edx, esi
mov ecx, dword [edi + esi*4 + 0x4c]
shl edx, 4
add edx, dword [ebp - 0x5c]
sub ecx, dword [eax + 0x128]
sub ecx, dword [edx + 0xc]
add ecx, dword [edx - 0xc]
mov dword [edi + esi*4 + 0x50], ecx
mov ecx, dword [ebp - 0x64]
mov dl, byte [edi + 0x288]
inc esi
movzx eax, dl
cmp esi, eax
jl 0x10021544
push dword [ebp - 0x5c]
call fcn.1004e5c7
add esp, 4
push dword [ebp - 0x68]
call fcn.1004e5c7
add esp, 4
mov ecx, dword [edi + 0x2c]
cmp dword [ecx + 0x10], 0
jne 0x100215d3
cmp dword [ecx + 0x34], 0
jne 0x100215d3
mov eax, dword [ecx + 0x58]
cmp eax, dword [ecx + 0x5c]
jne 0x100215d3
mov eax, dword [edi + 0x38]
lea esi, [edi + 0x38]
cmp byte [eax + 0x58], 0
je 0x10021656
jmp 0x100215e2
mov eax, dword [edi + 0x38]
lea esi, [edi + 0x38]
cmp byte [eax + 0x58], 0
je 0x100215f1
lea esi, [edi + 0x38]
cmp byte [edi + 0x288], 0
jne 0x100215f1
cmp dword [ecx + 0x34], 0
je 0x10021656
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x54]
push edx
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ecx, dword [esi]
mov dword [ebp - 0x64], 2
mov dword [ebp - 0x19], 0x1010101
mov byte [ebp - 0x15], 0
mov eax, dword [ecx + 0x174]
mov dword [ebp - 0x68], eax
mov eax, dword [ecx + 0x170]
mov dword [ebp - 0x5c], eax
mov eax, dword [ecx + 0x16c]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x19]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ecx + 0x13c]
mov ecx, edi
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.1001e8f0
mov eax, dword [edi + 0x2c]
mov esi, dword [sym.imp.USER32.dll_OffsetRect]
cmp dword [eax + 0x34], 0
je 0x10021694
cmp byte [edi + 0x1e8], 0
je 0x1002167c
push dword [edi + 0x1e4]
lea eax, [ebp - 0x44]
push 0
push eax
call esi
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
mov eax, dword [edi + 0x2c]
push dword [ebp - 0x60]
add eax, 0x24
push eax
call fcn.1001fb70
mov byte [ebp - 0x55], al
mov ecx, dword [edi + 0x28]
mov edx, dword [ecx]
mov edx, dword [edx + 0x50]
call edx
test al, al
jne 0x100216d6
mov eax, dword [edi + 0x2c]
cmp dword [eax + 0x10], 0
je 0x100216d6
cmp byte [edi + 0x1e8], 0
je 0x100216c2
push dword [edi + 0x1e0]
lea eax, [ebp - 0x34]
push 0
push eax
call esi
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
push dword [ebp - 0x60]
push dword [edi + 0x2c]
call fcn.1001fb70
or byte [ebp - 0x55], al
cmp byte [edi + 0x288], 0
je 0x100216ef
push 1
lea eax, [ebp - 0x60]
mov ecx, edi
push eax
call fcn.1001fd70
or byte [ebp - 0x55], al
mov eax, dword [edi + 0x28c]
mov ecx, dword [eax + 0x10]
lea eax, [edi + 0x278]
push eax
push dword [ebp - 0x60]
mov edx, dword [ecx]
push ecx
call dword [edx + 0xe4]
test eax, eax
jns 0x10021734
push 1
mov ecx, edi
call fcn.1001e290
mov eax, dword [edi + 0x28c]
mov ecx, dword [eax + 0x10]
lea eax, [edi + 0x278]
push eax
push dword [ebp - 0x60]
mov edx, dword [ecx]
push ecx
call dword [edx + 0xe4]
mov eax, dword [edi + 0x28c]
mov eax, dword [eax + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc0]
mov eax, dword [edi + 0x2c]
cmp dword [eax + 0x34], 0
je 0x10021764
lea ecx, [ebp - 0x44]
add eax, 0x24
push ecx
push dword [ebp - 0x60]
mov ecx, edi
push eax
call fcn.1001efd0
or byte [ebp - 0x55], al
mov ecx, dword [edi + 0x28]
mov eax, dword [ecx]
mov eax, dword [eax + 0x50]
call eax
test al, al
jne 0x1002178d
mov eax, dword [edi + 0x2c]
cmp dword [eax + 0x10], 0
je 0x1002178d
lea ecx, [ebp - 0x34]
push ecx
push dword [ebp - 0x60]
mov ecx, edi
push eax
call fcn.1001efd0
or byte [ebp - 0x55], al
cmp byte [edi + 0x288], 0
je 0x100217a6
push 0
lea eax, [ebp - 0x60]
mov ecx, edi
push eax
call fcn.1001fd70
or byte [ebp - 0x55], al
mov eax, dword [edi + 0x28c]
push 0
push 0
mov eax, dword [eax + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc4]
mov ecx, dword [edi + 0x28]
mov eax, dword [ecx]
mov eax, dword [eax + 0x54]
call eax
test al, al
je 0x100218e9
mov edx, dword [edi + 0x38]
lea eax, [edi + 0x1f0]
push 0x66
push eax
add edx, 0x6c
lea ecx, [edi + 0x200]
call fcn.100223c0
mov edx, dword [edi + 0x38]
lea eax, [edi + 0x1f4]
push 0x65
push eax
add edx, 0x84
lea ecx, [edi + 0x218]
call fcn.100223c0
mov edx, dword [edi + 0x38]
lea eax, [edi + 0x1fc]
push 0x6b
push eax
add edx, 0x9c
lea ecx, [edi + 0x230]
call fcn.100223c0
mov edx, dword [edi + 0x38]
lea eax, [edi + 0x1f8]
push 0x6a
push eax
add edx, 0xb4
lea ecx, [edi + 0x248]
call fcn.100223c0
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x24]
add esp, 0x20
mov eax, dword [ecx]
push edx
call dword [eax + 0x24]
cmp byte [edi + 0x1e8], 0
je 0x1002188d
mov eax, dword [edi + 0x2c]
cmp dword [eax + 0x34], 0
je 0x10021868
push dword [edi + 0x1e4]
jmp 0x10021885
mov ecx, dword [edi + 0x28]
mov eax, dword [ecx]
mov eax, dword [eax + 0x50]
call eax
test al, al
jne 0x1002188d
mov eax, dword [edi + 0x2c]
cmp dword [eax + 0x10], 0
je 0x1002188d
push dword [edi + 0x1e0]
push 0
lea eax, [ebp - 0x24]
push eax
call esi
mov eax, dword [edi + 0x34]
cmp byte [eax + 0x32], 0
je 0x1002189e
lea eax, [edi + 0x1ec]
jmp 0x100218cc
cmp byte [eax + 0x30], 0
je 0x100218ac
lea eax, [edi + 0x1f4]
jmp 0x100218cc
cmp dword [eax + 0x34], 0
jne 0x100218ba
lea eax, [edi + 0x1f0]
jmp 0x100218cc
cmp byte [eax + 0x33], 0
lea eax, [edi + 0x1f8]
jne 0x100218cc
lea eax, [edi + 0x1fc]
push 3
push 0
push 0
push 0
push 0
push dword [eax]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x60]
call dword [sym.imp.USER32.dll_DrawIconEx]
jmp 0x100218fa
cmp byte [ebp - 0x55], 0
jne 0x100218fa
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [ebp - 0x60]
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x70], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x34]
push eax
push dword [edi + 4]
movups xmmword [ebp - 0x34], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x68], eax
mov eax, dword [edi + 0x280]
sub eax, dword [edi + 0x278]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x7c], eax
mov eax, dword [edi + 0x284]
sub eax, dword [edi + 0x27c]
push 2
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x5c]
push eax
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x6c], ecx
push eax
push esi
mov esi, dword [ebp - 0x70]
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x1c], 0
push eax
push esi
push dword [edi + 4]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x5c], 0x1ff0000
call dword [sym.imp.USER32.dll_UpdateLayeredWindow]
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x74]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1004df9a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4