Function at 0x678f00
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
cmp edx, 8
mov dword [esp + 0x1c], edx
mov edi, ecx
jge 0x6791c0
lea esi, [edx - 1]
mov dword [esp + 0x10], esi
jmp 0x678f23
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x678f2e
mov esi, 0x50b
jmp 0x678f7d
cmp esi, 1
jne 0x678f3a
mov esi, 0x50e
jmp 0x678f7d
cmp esi, 2
jne 0x678f46
mov esi, 0x516
jmp 0x678f7d
cmp esi, 3
jne 0x678f52
mov esi, 0x51a
jmp 0x678f7d
cmp esi, 4
jne 0x678f5e
mov esi, 0x51b
jmp 0x678f7d
cmp esi, 5
jne 0x678f6a
mov esi, 0x51c
jmp 0x678f7d
sub esi, 6
neg esi
sbb esi, esi
and esi, 0xfffffae2
add esi, 0x51d
mov ebp, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0
push 0
push 0x146
push esi
push edi
call ebp
xor ebx, ebx
test eax, eax
mov dword [esp + 0x18], eax
jle 0x678fc2
push 0
push ebx
push 0x150
push esi
push edi
call ebp
cmp eax, 0xffffffff
je 0x678fb6
mov eax, dword [esp + 0x18]
inc ebx
cmp ebx, eax
jl 0x678f9a
jmp 0x678fc2
push 0
push ebx
push 0x14e
push esi
push edi
call ebp
cmp esi, 0x50b
jne 0x678fce
xor eax, eax
jmp 0x679029
cmp esi, 0x50e
jne 0x678fdd
mov eax, 1
jmp 0x679029
cmp esi, 0x516
jne 0x678fec
mov eax, 2
jmp 0x679029
cmp esi, 0x51a
jne 0x678ffb
mov eax, 3
jmp 0x679029
cmp esi, 0x51b
jne 0x67900a
mov eax, 4
jmp 0x679029
cmp esi, 0x51c
jne 0x679019
mov eax, 5
jmp 0x679029
mov eax, esi
sub eax, 0x51d
neg eax
sbb eax, eax
and al, 0xf9
add eax, 6
lea ebx, [eax + 1]
mov ecx, ebx
call fcn.004d13e0
mov ecx, ebx
mov ebp, eax
call fcn.004d0c20
mov ebx, eax
push 0
push 0
push 0x147
push esi
push edi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0
push eax
push 0x150
push esi
push edi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
test eax, eax
je 0x6790ea
cmp eax, 1
je 0x6790ea
cmp eax, 2
je 0x6790ea
push 0xfffffffffffffffe
mov edx, ebp
mov ecx, edi
mov byte [esp + 0x18], 0
call fcn.004d1a60
mov edx, ebx
mov ecx, edi
push 0xfffffffffffffffe
call fcn.004d11c0
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push ebp
push edi
call esi
mov ebp, eax
push ebx
push edi
call esi
mov ebx, eax
mov esi, dword [esp + 0x14]
and esi, 0xff
push esi
push ebp
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
call ebp
push esi
push ebx
call ebp
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
inc eax
cmp eax, 8
jl 0x678f1f
mov edx, dword [esp + 0x1c]
cmp edx, 8
jge 0x6791c0
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
lea esi, [edx - 1]
test esi, esi
jne 0x6790f1
mov ebp, 0x50b
jmp 0x679142
mov byte [esp + 0x14], 1
jmp 0x67908c
cmp esi, 1
jne 0x6790fd
mov ebp, 0x50e
jmp 0x679142
cmp esi, 2
jne 0x679109
mov ebp, 0x516
jmp 0x679142
cmp esi, 3
jne 0x679115
mov ebp, 0x51a
jmp 0x679142
cmp esi, 4
jne 0x679121
mov ebp, 0x51b
jmp 0x679142
cmp esi, 5
jne 0x67912d
mov ebp, 0x51c
jmp 0x679142
mov ebp, esi
sub ebp, 6
neg ebp
sbb ebp, ebp
and ebp, 0xfffffae2
add ebp, 0x51d
inc esi
mov ecx, esi
call fcn.004d0930
mov ecx, esi
mov dword [esp + 0x1c], eax
call fcn.004d0c20
mov ecx, esi
mov dword [esp + 0x18], eax
call fcn.004d13e0
mov dword [esp + 0x14], eax
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
push eax
push edi
call ebp
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
push ecx
push edi
call ebp
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
push edx
push edi
call ebp
mov ebp, eax
mov eax, dword [esp + 0x10]
push 0
push eax
call ebx
mov ecx, dword [esp + 0x1c]
push 0
push ecx
call ebx
mov edx, dword [esp + 0x18]
push 0
push edx
call ebx
push 0
push ebp
call ebx
lea eax, [esi + 1]
cmp eax, 8
jl 0x6790df
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret