Function at 0x40af9c
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.0040ae5e
mov esi, eax
lea eax, [ebx + 0x134]
mov dword [esp + 0x14], esi
cmp esi, dword [eax]
je 0x40b35b
and dword [esp + 0x10], 0
and dword [esp + 0x24], 0
mov dword [eax], esi
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x24], 0xc
call fcn.00407e9f
mov ebp, dword [0x4645c0]
cmp esi, 1
pop ecx
jne 0x40b194
push 0x471898
push dword [ebx + 0x88]
call dword [0x464570]
push 0x44f
mov dword [esp + 0x2c], 0x8000
push dword [ebx + 4]
call ebp
sub esp, 0x10
lea esi, [esp + 0x30]
mov edi, esp
lea ecx, [ebx + 0x68]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call fcn.0043eed9
push 0x44f
push dword [ebx + 4]
call ebp
push 0x471b94
push eax
call dword [0x464570]
push 0x44e
mov dword [esp + 0x28], 1
push dword [ebx + 4]
mov dword [esp + 0x28], 0xe
mov dword [esp + 0x30], 0x8000
call ebp
sub esp, 0x10
lea esi, [esp + 0x30]
mov edi, esp
lea ecx, [ebx + 0x68]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call fcn.0043eed9
push 0x44e
push dword [ebx + 4]
call ebp
mov esi, 0x471848
push esi
push eax
call dword [0x464570]
lea eax, [esp + 0x10]
mov edi, 0x29cd
push eax
push edi
push 0x44d
push dword [ebx + 4]
call fcn.0042e6c8
add esp, 0x10
cmp dword [esp + 0x10], 0
je 0x40b0c7
push str.false
push str.rgb_23_121_53_
push dword [esp + 0x20]
push esi
push dword [esp + 0x20]
call fcn.00406a81
add esp, 0x14
lea eax, [esp + 0x10]
push eax
push edi
push 0x451
push dword [ebx + 4]
call fcn.0042e6c8
add esp, 0x10
cmp dword [esp + 0x10], 0
je 0x40b0ff
push str.false
push str.rgb_23_121_53_
push dword [esp + 0x20]
push esi
push dword [esp + 0x20]
call fcn.00406a81
add esp, 0x14
lea eax, [esp + 0x10]
push eax
push edi
push 0x454
push dword [ebx + 4]
call fcn.0042e6c8
xor edi, edi
add esp, 0x10
cmp dword [esp + 0x10], edi
je 0x40b138
push str.false
push str.rgb_23_121_53_
push dword [esp + 0x20]
push esi
push dword [esp + 0x20]
call fcn.00406a81
add esp, 0x14
cmp dword [esp + 0x34], edi
je 0x40b16c
push 0x44b
push dword [ebx + 4]
call ebp
mov esi, dword [0x464580]
push edi
mov edi, 0xf1
push 1
push edi
push eax
call esi
push 0x456
push dword [ebx + 4]
call ebp
push 0
push 1
push edi
push eax
call esi
push 0x424
push dword [ebx + 4]
call ebp
mov esi, dword [0x464588]
push 5
push eax
call esi
push 0x425
push dword [ebx + 4]
call ebp
push 0
push eax
call esi
mov esi, dword [esp + 0x14]
cmp esi, 3
jne 0x40b341
push 0x47183c
push dword [ebx + 0x88]
call dword [0x464570]
push 0x44f
mov dword [esp + 0x2c], 0x35da
push dword [ebx + 4]
call ebp
sub esp, 0x10
lea esi, [esp + 0x30]
mov edi, esp
lea ecx, [ebx + 0x68]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call fcn.0043eed9
push 0x44f
push dword [ebx + 4]
call ebp
push 0x471b94
push eax
call dword [0x464570]
push 0x44e
mov dword [esp + 0x28], 1
push dword [ebx + 4]
mov dword [esp + 0x28], 0xe
mov dword [esp + 0x30], 0x35da
call ebp
sub esp, 0x10
lea esi, [esp + 0x30]
mov edi, esp
lea ecx, [ebx + 0x68]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call fcn.0043eed9
push 0x44e
push dword [ebx + 4]
call ebp
mov esi, 0x4717f8
push esi
push eax
call dword [0x464570]
lea eax, [esp + 0x10]
mov edi, 0x29cd
push eax
push edi
push 0x44d
push dword [ebx + 4]
call fcn.0042e6c8
add esp, 0x10
cmp dword [esp + 0x10], 0
je 0x40b278
push str.false
push str.rgb_237_28_36
push dword [esp + 0x20]
push esi
push dword [esp + 0x20]
call fcn.00406a81
add esp, 0x14
lea eax, [esp + 0x10]
push eax
push edi
push 0x451
push dword [ebx + 4]
call fcn.0042e6c8
add esp, 0x10
cmp dword [esp + 0x10], 0
je 0x40b2b0
push str.false
push str.rgb_237_28_36
push dword [esp + 0x20]
push esi
push dword [esp + 0x20]
call fcn.00406a81
add esp, 0x14
lea eax, [esp + 0x10]
push eax
push edi
push 0x454
push dword [ebx + 4]
call fcn.0042e6c8
xor edi, edi
add esp, 0x10
cmp dword [esp + 0x10], edi
je 0x40b2e9
push str.false
push str.rgb_237_28_36
push dword [esp + 0x20]
push esi
push dword [esp + 0x20]
call fcn.00406a81
add esp, 0x14
cmp dword [esp + 0x34], edi
je 0x40b31e
push 0x44b
push dword [ebx + 4]
call ebp
mov esi, dword [0x464580]
push edi
push edi
mov edi, 0xf1
push edi
push eax
call esi
push 0x456
push dword [ebx + 4]
call ebp
push 0
push 0
push edi
push eax
call esi
xor edi, edi
push 0x424
push dword [ebx + 4]
call ebp
mov esi, dword [0x464588]
push edi
push eax
call esi
push 0x425
push dword [ebx + 4]
call ebp
push 5
push eax
call esi
push 0x41a
push dword [ebx + 4]
call ebp
push 0x105
push 0
push 0
push eax
call dword [0x464504]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4