Function at 0x41b0d0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x2c
push ebp
mov ebp, dword [esp + 0x34]
test ebp, ebp
je 0x41b74e
cmp dword [ebp + 0x114], 0
jne 0x41b74e
cmp dword [ebp + 0x120], 0
push ebx
push esi
mov esi, 1
push edi
mov dword [ebp + 0x114], esi
jne 0x41b112
push 0
push ebp
call fcn.0041acf0
mov dword [ebp + 0x120], esi
push 0
push ebp
call fcn.0041a930
mov edi, 4
cmp dword [ebp + 0x12c], edi
mov esi, edi
jle 0x41b2c4
mov edx, 0x2f0
mov eax, dword [ebp + 0x130]
mov ecx, dword [eax + edx + 0x6c]
add eax, edx
test ecx, ecx
je 0x41b14e
cmp dword [ebp + 0x128], ecx
jne 0x41b2af
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x41b2af
cmp ecx, 1
jne 0x41b210
mov ecx, dword [eax + 0x38]
sub ecx, dword [eax + 0x30]
mov ebx, dword [eax + 0x40]
lea ecx, [ecx + ebx + 1]
mov dword [eax + 0x48], ecx
mov ecx, dword [eax + 0x20]
test ecx, ecx
jl 0x41b1a1
mov ebx, dword [ebp + 0x130]
imul ecx, ecx, 0xbc
mov ecx, dword [ecx + ebx + 0x48]
cmp dword [eax + 0x40], ecx
jg 0x41b1a1
add ecx, 1
mov dword [eax + 0x40], ecx
mov ebx, dword [eax + 0x38]
sub ebx, dword [eax + 0x30]
lea ecx, [ebx + ecx + 1]
mov dword [eax + 0x48], ecx
mov ecx, dword [eax + 0x24]
test ecx, ecx
jl 0x41b1be
mov ebx, dword [ebp + 0x130]
imul ecx, ecx, 0xbc
mov ecx, dword [ecx + ebx + 0x4c]
add ecx, 1
mov dword [eax + 0x44], ecx
mov ecx, dword [eax + 0x28]
test ecx, ecx
jl 0x41b1ed
mov ebx, dword [ebp + 0x130]
imul ecx, ecx, 0xbc
mov ecx, dword [ecx + ebx + 0x40]
cmp dword [eax + 0x48], ecx
jl 0x41b1ed
add ecx, 0xffffffff
mov dword [eax + 0x48], ecx
sub ecx, dword [eax + 0x38]
mov ebx, dword [eax + 0x30]
lea ecx, [ecx + ebx - 1]
mov dword [eax + 0x40], ecx
mov ecx, dword [eax + 0x2c]
test ecx, ecx
jl 0x41b2af
mov ebx, dword [ebp + 0x130]
imul ecx, ecx, 0xbc
mov ecx, dword [ecx + ebx + 0x44]
mov dword [eax + 0x4c], ecx
jmp 0x41b2af
mov ecx, dword [eax + 0x3c]
sub ecx, dword [eax + 0x34]
mov ebx, dword [eax + 0x44]
lea ecx, [ecx + ebx + 1]
mov dword [eax + 0x4c], ecx
mov ecx, dword [eax + 0x20]
test ecx, ecx
jl 0x41b23a
mov ebx, dword [ebp + 0x130]
imul ecx, ecx, 0xbc
mov ecx, dword [ecx + ebx + 0x48]
mov dword [eax + 0x40], ecx
mov ecx, dword [eax + 0x24]
test ecx, ecx
jl 0x41b269
mov ebx, dword [ebp + 0x130]
imul ecx, ecx, 0xbc
mov ecx, dword [ecx + ebx + 0x4c]
cmp dword [eax + 0x44], ecx
jg 0x41b269
add ecx, 1
mov dword [eax + 0x44], ecx
mov ebx, dword [eax + 0x3c]
sub ebx, dword [eax + 0x34]
lea ecx, [ebx + ecx + 1]
mov dword [eax + 0x4c], ecx
mov ecx, dword [eax + 0x28]
test ecx, ecx
jl 0x41b283
mov ebx, dword [ebp + 0x130]
imul ecx, ecx, 0xbc
mov ecx, dword [ecx + ebx + 0x40]
mov dword [eax + 0x48], ecx
mov ecx, dword [eax + 0x2c]
test ecx, ecx
jl 0x41b2af
mov ebx, dword [ebp + 0x130]
imul ecx, ecx, 0xbc
mov ecx, dword [ecx + ebx + 0x44]
cmp dword [eax + 0x4c], ecx
jl 0x41b2af
mov dword [eax + 0x4c], ecx
mov ebx, dword [eax + 0x34]
sub ebx, dword [eax + 0x3c]
lea ecx, [ebx + ecx - 1]
mov dword [eax + 0x44], ecx
add esi, 1
add edx, 0xbc
cmp esi, dword [ebp + 0x12c]
jl 0x41b132
cmp dword [ebp + 0x12c], edi
mov dword [esp + 0x40], edi
jle 0x41b512
mov ecx, 0x2f0
mov dword [esp + 0x10], ecx
lea ecx, [ecx]
mov esi, dword [ebp + 0x130]
mov eax, dword [esi + ecx + 0x6c]
test eax, eax
je 0x41b2fa
cmp dword [ebp + 0x128], eax
jne 0x41b4e8
cmp dword [esi + ecx + 8], 0
jne 0x41b4e8
mov edi, dword [esp + 0x10]
lea ebx, [esi + edi + 0x20]
lea eax, [esi + edi + 0x40]
lea edx, [esi + edi + 0x30]
lea ecx, [esi + edi + 0x10]
mov edi, dword [ebx]
test edi, edi
jl 0x41b35d
imul edi, edi, 0xbc
add esi, edi
mov edi, dword [ecx]
cmp edi, 1
jne 0x41b33a
mov edi, dword [esi + 0x48]
sub edi, dword [esi + 0x38]
mov esi, dword [edx]
add esi, edi
jmp 0x41b345
cmp edi, 2
jne 0x41b359
mov esi, dword [esi + 0x48]
add esi, 1
mov dword [eax], esi
cmp dword [ecx + 8], 0
jne 0x41b35d
mov edi, dword [edx + 8]
sub edi, dword [edx]
add edi, esi
mov dword [eax + 8], edi
jmp 0x41b35d
mov esi, dword [edx]
mov dword [eax], esi
mov esi, dword [ebx + 4]
test esi, esi
jl 0x41b3ae
mov edi, dword [ebp + 0x130]
imul esi, esi, 0xbc
add esi, edi
mov edi, dword [ecx + 4]
cmp edi, 1
jne 0x41b387
mov edi, dword [esi + 0x4c]
sub edi, dword [esi + 0x3c]
mov esi, dword [edx + 4]
add esi, edi
jmp 0x41b392
cmp edi, 2
jne 0x41b3a8
mov esi, dword [esi + 0x4c]
add esi, 1
mov dword [eax + 4], esi
cmp dword [ecx + 0xc], 0
jne 0x41b3ae
mov edi, dword [edx + 0xc]
sub edi, dword [edx + 4]
add edi, esi
mov dword [eax + 0xc], edi
jmp 0x41b3ae
mov esi, dword [edx + 4]
mov dword [eax + 4], esi
mov esi, dword [ebx + 8]
test esi, esi
jl 0x41b3f4
mov edi, dword [ebp + 0x130]
imul esi, esi, 0xbc
add esi, edi
mov edi, dword [ecx + 8]
cmp edi, 1
jne 0x41b3d8
mov edi, dword [esi + 0x40]
sub edi, dword [esi + 0x30]
mov esi, dword [edx + 8]
add esi, edi
jmp 0x41b3e3
cmp edi, 2
jne 0x41b3f4
mov esi, dword [esi + 0x40]
add esi, 0xffffffff
mov dword [eax + 8], esi
cmp dword [ecx], 0
jne 0x41b3f4
mov edi, dword [edx]
sub edi, dword [edx + 8]
add edi, esi
mov dword [eax], edi
mov esi, dword [ebx + 0xc]
test esi, esi
jl 0x41b43d
mov edi, dword [ebp + 0x130]
imul esi, esi, 0xbc
add esi, edi
mov edi, dword [ecx + 0xc]
cmp edi, 1
jne 0x41b41e
mov edi, dword [esi + 0x44]
sub edi, dword [esi + 0x34]
mov esi, dword [edx + 0xc]
add esi, edi
jmp 0x41b429
cmp edi, 2
jne 0x41b43d
mov esi, dword [esi + 0x44]
add esi, 0xffffffff
mov dword [eax + 0xc], esi
cmp dword [ecx + 4], 0
jne 0x41b43d
mov ecx, dword [edx + 4]
sub ecx, dword [edx + 0xc]
add ecx, esi
mov dword [eax + 4], ecx
mov ecx, dword [ebx]
test ecx, ecx
jl 0x41b45f
mov edx, dword [ebp + 0x130]
imul ecx, ecx, 0xbc
lea ecx, [ecx + edx + 0x40]
mov ecx, dword [ecx + 8]
cmp dword [eax], ecx
jg 0x41b45f
add ecx, 1
mov dword [eax], ecx
mov ecx, dword [ebx + 4]
test ecx, ecx
jl 0x41b484
mov edx, dword [ebp + 0x130]
imul ecx, ecx, 0xbc
lea ecx, [ecx + edx + 0x40]
mov ecx, dword [ecx + 0xc]
cmp dword [eax + 4], ecx
jg 0x41b484
add ecx, 1
mov dword [eax + 4], ecx
mov ecx, dword [ebx + 8]
test ecx, ecx
jl 0x41b4a8
mov edx, dword [ebp + 0x130]
imul ecx, ecx, 0xbc
lea ecx, [ecx + edx + 0x40]
mov ecx, dword [ecx]
cmp dword [eax + 8], ecx
jl 0x41b4a8
add ecx, 0xffffffff
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jl 0x41b4cd
mov edx, dword [ebp + 0x130]
imul ecx, ecx, 0xbc
lea ecx, [ecx + edx + 0x40]
mov ecx, dword [ecx + 4]
cmp dword [eax + 0xc], ecx
jl 0x41b4cd
add ecx, 0xffffffff
mov dword [eax + 0xc], ecx
mov ecx, dword [eax]
cmp dword [eax + 8], ecx
jge 0x41b4da
add ecx, 0xffffffff
mov dword [eax + 8], ecx
mov ecx, dword [eax + 4]
cmp dword [eax + 0xc], ecx
jge 0x41b4e8
add ecx, 0xffffffff
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x10]
add eax, 1
add ecx, 0xbc
cmp eax, dword [ebp + 0x12c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x10], ecx
jl 0x41b2e0
mov edi, 4
cmp dword [ebp + 0x12c], edi
mov dword [esp + 0x40], edi
jle 0x41b741
mov ebx, dword [sym.imp.USER32.dll_InvalidateRect]
mov dword [esp + 0x10], 0x2f0
mov esi, dword [ebp + 0x130]
add esi, dword [esp + 0x10]
mov edx, dword [esp + 0x44]
mov eax, dword [esi + 0x40]
cmp eax, dword [esi + 0x50]
mov ecx, 1
jne 0x41b565
mov eax, dword [esi + 0x44]
cmp eax, dword [esi + 0x54]
jne 0x41b565
mov eax, dword [esi + 0x48]
cmp eax, dword [esi + 0x58]
jne 0x41b565
mov eax, dword [esi + 0x4c]
cmp eax, dword [esi + 0x5c]
jne 0x41b565
xor ecx, ecx
cmp dword [esi + 0xc], 1
mov eax, dword [esi + 0x6c]
je 0x41b67e
test eax, eax
je 0x41b58e
cmp dword [ebp + 0x128], eax
je 0x41b58e
mov ecx, dword [esi]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x41b70a
test edx, edx
jne 0x41b59a
test ecx, ecx
je 0x41b668
mov eax, dword [esi]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [esi + 0x48]
mov ebx, dword [esi + 0x4c]
mov eax, dword [esp + 0x24]
sub edi, dword [esi + 0x40]
sub ebx, dword [esi + 0x44]
sub eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x20]
add edi, 1
add ebx, 1
cmp eax, 2
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jl 0x41b5dc
cmp ecx, 2
jge 0x41b5e7
mov ecx, dword [esi]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x40]
mov ecx, dword [esi]
push 0x14
push ebx
push edi
push edx
push eax
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
cmp dword [esp + 0x18], edi
je 0x41b626
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x1c]
cmp edi, ecx
jl 0x41b630
cmp dword [esp + 0x14], ebx
je 0x41b649
cmp ebx, eax
jge 0x41b649
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x40]
mov ecx, dword [esi]
push 0x14
push 0
push 0
push edx
push eax
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esi + 0xb8], 0
jne 0x41b668
mov edx, dword [esi]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esi]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x41b70a
test eax, eax
je 0x41b68e
cmp dword [ebp + 0x128], eax
jne 0x41b70a
test edx, edx
jne 0x41b696
test ecx, ecx
je 0x41b70a
mov edx, dword [esi + 0x58]
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
mov edi, dword [esi + 0x5c]
add edx, 3
sub eax, 3
mov dword [esp + 0x34], edx
push 1
lea edx, [esp + 0x30]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 8]
push edx
sub ecx, 3
add edi, 3
push eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], edi
call ebx
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
mov eax, dword [esi + 0x40]
mov edi, dword [esi + 0x4c]
sub ecx, 3
add edx, 3
mov dword [esp + 0x30], ecx
push 1
lea ecx, [esp + 0x30]
mov dword [esp + 0x38], edx
mov edx, dword [ebp + 8]
push ecx
sub eax, 3
add edi, 3
push edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], edi
call ebx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
add dword [esp + 0x10], 0xbc
mov dword [esi + 0x50], ecx
mov ecx, dword [esi + 0x4c]
mov dword [esi + 0x54], edx
mov dword [esi + 0x58], eax
mov eax, dword [esp + 0x40]
add eax, 1
mov dword [esi + 0x5c], ecx
cmp eax, dword [ebp + 0x12c]
mov dword [esp + 0x40], eax
jl 0x41b530
pop edi
pop esi
mov dword [ebp + 0x114], 0
pop ebx
pop ebp
add esp, 0x2c
ret 8