Function at 0x1006682
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
lea eax, [ebp - 0x2c]
push edi
push eax
mov esi, ecx
push 0x1001b5c
call dword [0x100c1bc]
test eax, eax
jl 0x1006899
lea edi, [esi + 0x68]
lea eax, [ebp - 0x2c]
push edi
push 0x1001f80
push 5
push 0
push eax
call dword [0x100c1f4]
test eax, eax
mov dword [ebp - 4], eax
jl 0x1006899
mov eax, dword [edi]
lea ebx, [esi + 0x6c]
push ebx
push 0x1002170
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
mov dword [ebp - 4], eax
jl 0x1006899
mov eax, dword [edi]
lea edi, [esi + 0x70]
push edi
push 0x1002160
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
mov dword [ebp - 4], eax
jl 0x1006899
mov ecx, dword [edi]
mov eax, esi
neg eax
lea edx, [esi + 0x10]
sbb eax, eax
and eax, edx
mov edx, dword [ecx]
push eax
push ecx
mov dword [ebp - 0x18], eax
call dword [edx + 0xc]
test eax, eax
mov dword [ebp - 4], eax
jl 0x1006899
mov eax, dword [edi]
lea edx, [ebp - 0x10]
push edx
push 0x1002150
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x1006744
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 1
push dword [edi]
call dword [0x100c1dc]
mov edi, esi
lea eax, [esi + 0x24]
neg edi
sbb edi, edi
push 0
and edi, eax
lea eax, [esi + 0x7c]
push eax
push dword [esi + 0x68]
push 1
push 0x1002120
push edi
call fcn.01007e9d
lea eax, [esi + 0x80]
push 0
push eax
push dword [esi + 0x68]
push 1
push 0x1002110
push edi
call fcn.01007e9d
mov eax, dword [ebx]
or edi, 0xffffffff
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0xf8]
mov eax, dword [ebx]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x100]
mov eax, dword [ebx]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov eax, dword [ebx]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x108]
mov eax, dword [esi + 0x68]
lea edx, [ebp - 0x14]
push edx
push 0x1002140
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
mov dword [ebp - 4], eax
jl 0x100682f
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
mov dword [ebp - 4], eax
jl 0x1006826
mov eax, dword [ebp - 8]
lea edx, [ebp - 0xc]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test eax, eax
jl 0x1006809
or dword [ebp - 0xc], 0x18
mov eax, dword [ebp - 8]
push dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
mov eax, dword [ebp - 8]
lea edx, [esi + 0x74]
push edx
push 0x1002130
mov ecx, dword [eax]
push eax
call dword [ecx]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 4], 0
jl 0x1006899
lea eax, [ebp - 0x1c]
push 0
push eax
call dword [0x100c194]
mov ebx, dword [ebx]
neg eax
mov ecx, dword [ebx]
sbb eax, eax
neg eax
dec eax
push eax
push ebx
call dword [ecx + 0xe8]
push 0x18
call fcn.0100338b
test eax, eax
pop ecx
je 0x100686f
push 0x2710
push esi
mov ecx, eax
call fcn.010035fa
jmp 0x1006871
xor eax, eax
push 1
mov dword [esi + 0x98], eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov eax, dword [esi + 0x70]
push dword [esi + 8]
mov ecx, dword [eax]
push 0
push dword [ebp - 0x18]
push 0
push edi
push eax
call dword [ecx + 0x2c]
xor eax, eax
pop edi
cmp dword [ebp - 4], eax
pop esi
pop ebx
setge al
leave
ret 4