Function at 0x10020ca0
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 0x1007c930
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x1009b01c]
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
lea edx, [edi + 0x298]
mov dword [ebp - 4], 0
push edx
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 - 0x6c], esi
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 2
mov ecx, dword [edi + 0x2a4]
sub ecx, dword [edi + 0x29c]
mov eax, dword [edi + 0x2a0]
sub eax, dword [edi + 0x298]
push ecx
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push dword [ebp - 0x4c]
mov dword [ebp - 0x68], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp byte [edi + 0x2a9], 0
mov byte [ebp - 0x45], 0
jne 0x100212cf
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ecx]
call dword [eax + 8]
cmp byte [edi + 0x1f8], 0
je 0x10020f7a
movzx esi, byte [edi + 0x2a8]
xor ecx, ecx
mov eax, esi
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1004d901
add esp, 4
mov dword [ebp - 0x50], eax
test esi, esi
je 0x10020dd4
lea ecx, [eax + 8]
nop dword [eax]
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 0x10020db0
movzx eax, byte [edi + 0x2a8]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1004d901
mov cl, byte [edi + 0x2a8]
add esp, 4
xor esi, esi
mov dword [ebp - 0x58], eax
test cl, cl
je 0x10020ea1
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x60], edx
nop dword [eax]
cmp esi, 0x64
jge 0x10020e4a
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x24]
push esi
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
mov edx, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x58]
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 + 0x2a8]
movzx eax, cl
mov dword [ebp - 0x60], edx
cmp esi, eax
jl 0x10020e10
test cl, cl
je 0x10020ea1
mov ecx, dword [edi + 0x28]
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
mov ecx, dword [ebp - 0x50]
test al, al
jne 0x10020e7e
mov eax, dword [edi + 0x2c]
cmp dword [eax + 0x10], 0
je 0x10020e7e
movzx eax, byte [edi + 0x2a8]
add eax, eax
mov eax, dword [ecx + eax*8 - 4]
sub eax, dword [ebp - 0x38]
mov dword [edi + 0x1f0], eax
mov eax, dword [edi + 0x2c]
mov edx, dword [ebp - 0x28]
cmp dword [eax + 0x34], 0
je 0x10020eb8
movzx eax, byte [edi + 0x2a8]
add eax, eax
mov eax, dword [ecx + eax*8 - 4]
sub eax, edx
mov dword [edi + 0x1f4], eax
jmp 0x10020eb8
mov edx, dword [ebp - 0x28]
mov dword [edi + 0x1f0], 0
mov dword [edi + 0x1f4], 0
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x60], 0
cmp dword [eax + 0x34], 0
je 0x10020edb
mov eax, dword [edi + 0x38]
mov ecx, dword [eax + 0x120]
sub ecx, dword [ebp - 0x30]
add ecx, edx
mov dword [ebp - 0x60], ecx
jmp 0x10020f08
mov ecx, dword [edi + 0x28]
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
test al, al
jne 0x10020f06
mov eax, dword [edi + 0x2c]
cmp dword [eax + 0x10], 0
je 0x10020f06
mov eax, dword [edi + 0x38]
mov ecx, dword [eax + 0x120]
sub ecx, dword [ebp - 0x40]
add ecx, dword [ebp - 0x38]
mov dword [ebp - 0x60], ecx
jmp 0x10020f08
xor ecx, ecx
mov dl, byte [edi + 0x2a8]
xor esi, esi
test dl, dl
je 0x10020f64
cmp esi, 0x64
jge 0x10020f64
test esi, esi
jne 0x10020f34
movzx eax, dl
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + eax*4 - 4]
mov edx, dword [ebp - 0x50]
sub eax, dword [edx + 0xc]
sub eax, ecx
mov dword [edi + 0x60], eax
jmp 0x10020f56
mov eax, dword [edi + 0x38]
mov edx, esi
mov ecx, dword [edi + esi*4 + 0x5c]
shl edx, 4
add edx, dword [ebp - 0x50]
sub ecx, dword [eax + 0x124]
sub ecx, dword [edx + 0xc]
add ecx, dword [edx - 0xc]
mov dword [edi + esi*4 + 0x60], ecx
mov ecx, dword [ebp - 0x60]
mov dl, byte [edi + 0x2a8]
inc esi
movzx eax, dl
cmp esi, eax
jl 0x10020f14
push dword [ebp - 0x50]
call fcn.1004d90a
add esp, 4
push dword [ebp - 0x58]
call fcn.1004d90a
add esp, 4
mov ecx, dword [edi + 0x2c]
cmp dword [ecx + 0x10], 0
jne 0x10020f91
cmp dword [ecx + 0x34], 0
jne 0x10020f91
mov eax, dword [ecx + 0x58]
cmp eax, dword [ecx + 0x5c]
je 0x10020fec
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edx, dword [edi + 0x38]
sub esp, 0x10
movups xmm0, xmmword [ebp - 0x24]
mov eax, esp
mov dword [ebp - 0x58], 0x1010101
mov byte [ebp - 0x59], 0
push dword [edx + 0x170]
sub esp, 8
mov ecx, esp
movups xmmword [eax], xmm0
mov eax, dword [ebp - 0x58]
push 2
push dword [edx + 0x138]
mov dword [ecx], eax
push dword [edx + 0x16c]
mov al, byte [ebp - 0x59]
push dword [edx + 0x168]
mov byte [ecx + 4], al
lea eax, [ebp - 0x4c]
push eax
mov ecx, edi
call fcn.1001e0a0
mov eax, dword [edi + 0x2c]
mov esi, dword [sym.imp.USER32.dll_OffsetRect]
cmp dword [eax + 0x34], 0
je 0x1002102a
cmp byte [edi + 0x1f8], 0
je 0x10021012
push dword [edi + 0x1f4]
lea eax, [ebp - 0x34]
push 0
push eax
call esi
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
mov eax, dword [edi + 0x2c]
push dword [ebp - 0x4c]
add eax, 0x24
push eax
call fcn.1001f3f0
mov byte [ebp - 0x45], al
mov ecx, dword [edi + 0x28]
mov edx, dword [ecx]
mov edx, dword [edx + 0x40]
call edx
test al, al
jne 0x1002106c
mov eax, dword [edi + 0x2c]
cmp dword [eax + 0x10], 0
je 0x1002106c
cmp byte [edi + 0x1f8], 0
je 0x10021058
push dword [edi + 0x1f0]
lea eax, [ebp - 0x44]
push 0
push eax
call esi
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
push dword [ebp - 0x4c]
push dword [edi + 0x2c]
call fcn.1001f3f0
or byte [ebp - 0x45], al
cmp byte [edi + 0x2a8], 0
je 0x10021085
push 1
lea eax, [ebp - 0x4c]
mov ecx, edi
push eax
call fcn.1001f930
or byte [ebp - 0x45], al
mov eax, dword [edi + 0x2ac]
lea edx, [edi + 0x298]
push edx
push dword [ebp - 0x4c]
mov eax, dword [eax + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xe4]
mov eax, dword [edi + 0x2ac]
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 0x100210d1
lea ecx, [ebp - 0x34]
add eax, 0x24
push ecx
push dword [ebp - 0x4c]
mov ecx, edi
push eax
call fcn.1001e720
or byte [ebp - 0x45], al
mov ecx, dword [edi + 0x28]
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
test al, al
jne 0x100210fa
mov eax, dword [edi + 0x2c]
cmp dword [eax + 0x10], 0
je 0x100210fa
lea ecx, [ebp - 0x44]
push ecx
push dword [ebp - 0x4c]
mov ecx, edi
push eax
call fcn.1001e720
or byte [ebp - 0x45], al
cmp byte [edi + 0x2a8], 0
je 0x10021113
push 0
lea eax, [ebp - 0x4c]
mov ecx, edi
push eax
call fcn.1001f930
or byte [ebp - 0x45], al
mov eax, dword [edi + 0x2ac]
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 + 0x44]
call eax
test al, al
je 0x100212be
mov edx, dword [edi + 0x38]
lea eax, [edi + 0x210]
push 0x66
push eax
add edx, 0x70
lea ecx, [edi + 0x220]
call fcn.10021dd0
mov edx, dword [edi + 0x38]
lea esi, [edi + 0x214]
push 0x65
push esi
add edx, 0x88
lea ecx, [edi + 0x238]
call fcn.10021dd0
mov edx, dword [edi + 0x38]
lea eax, [edi + 0x21c]
push 0x6b
push eax
add edx, 0xa0
lea ecx, [edi + 0x250]
call fcn.10021dd0
mov edx, dword [edi + 0x38]
lea eax, [edi + 0x218]
push 0x6a
push eax
add edx, 0xb8
lea ecx, [edi + 0x268]
call fcn.10021dd0
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 + 0x1f8], 0
je 0x100211ff
mov eax, dword [edi + 0x2c]
cmp dword [eax + 0x34], 0
je 0x100211d5
push dword [edi + 0x1f4]
jmp 0x100211f2
mov ecx, dword [edi + 0x28]
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
test al, al
jne 0x100211ff
mov eax, dword [edi + 0x2c]
cmp dword [eax + 0x10], 0
je 0x100211ff
push dword [edi + 0x1f0]
push 0
lea eax, [ebp - 0x24]
push eax
mov eax, dword [sym.imp.USER32.dll_OffsetRect]
call eax
mov eax, dword [edi + 0x34]
cmp byte [eax + 0x32], 0
je 0x10021213
lea esi, [edi + 0x20c]
jmp 0x100212a1
cmp byte [eax + 0x30], 0
jne 0x100212a1
mov ecx, dword [edi + 0x2c]
add ecx, 0x24
mov edx, ecx
mov eax, dword [ecx + 0x14]
cmp eax, 8
jb 0x1002122f
mov edx, dword [ecx]
mov esi, dword [ecx + 0x10]
mov dword [ebp - 0x60], esi
cmp esi, 2
jne 0x1002125e
mov dword [ebp - 0x58], esi
mov esi, 0x1008aff8
mov ax, word [edx]
cmp ax, word [esi]
jne 0x10021258
add edx, 2
add esi, 2
sub dword [ebp - 0x58], 1
jne 0x10021242
jmp 0x10021283
mov esi, dword [ebp - 0x60]
mov eax, dword [ecx + 0x14]
cmp eax, 8
jb 0x10021265
mov ecx, dword [ecx]
cmp esi, 2
jne 0x1002129b
mov edx, 0x1008b000
nop
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x1002129b
add ecx, 2
add edx, 2
sub esi, 1
jne 0x10021270
mov eax, dword [edi + 0x34]
lea esi, [edi + 0x21c]
cmp byte [eax + 0x33], 0
lea eax, [edi + 0x218]
cmovne esi, eax
jmp 0x100212a1
lea esi, [edi + 0x210]
push 3
push 0
push 0
push 0
push 0
push dword [esi]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x4c]
call dword [sym.imp.USER32.dll_DrawIconEx]
jmp 0x100212cf
cmp byte [ebp - 0x45], 0
jne 0x100212cf
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [ebp - 0x4c]
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x58], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x24]
push eax
push dword [edi + 4]
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0x2a0]
sub eax, dword [edi + 0x298]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x64], eax
mov eax, dword [edi + 0x2a4]
sub eax, dword [edi + 0x29c]
push 2
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x50]
push eax
push 0
lea eax, [ebp - 0x70]
mov dword [ebp - 0x2c], ecx
push eax
push esi
mov esi, dword [ebp - 0x58]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x70], 0
push eax
push esi
push dword [edi + 4]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x50], 0x1ff0000
call dword [sym.imp.USER32.dll_UpdateLayeredWindow]
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0xffffffffffffffec
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xffffffdf
push eax
push 0xffffffffffffffec
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push dword [ebp - 0x4c]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x68]
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.1004d2dd
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4